ReactOS 0.4.15-dev-7906-g1b85a5f
ext4_jbd2.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ext4_journal_get_write_access(handle, icb, bh)    __ext4_journal_get_write_access("", __LINE__, (icb), (handle), (bh))
 
#define ext4_forget(handle, icb, is_metadata, inode, bh, block_nr)
 
#define ext4_journal_get_create_access(handle, icb, bh)    __ext4_journal_get_create_access("", __LINE__, (icb), (handle), (bh))
 
#define ext4_handle_dirty_metadata(handle, icb, inode, bh)
 
#define ext4_journal_start_sb(icb, sb, type, nblocks)    __ext4_journal_start_sb((icb), (sb), __LINE__, (type), (nblocks), 0)
 
#define ext4_journal_start(icb, inode, type, nblocks)    __ext4_journal_start((icb), (inode), __LINE__, (type), (nblocks), 0)
 
#define ext4_journal_stop(icb, handle)    __ext4_journal_stop("", __LINE__, (icb), (handle))
 

Functions

void ext4_journal_abort_handle (const char *caller, unsigned int line, const char *err_fn, struct buffer_head *bh, handle_t *handle, int err)
 
int __ext4_handle_dirty_super (const char *where, unsigned int line, handle_t *handle, struct super_block *sb)
 
int __ext4_journal_get_write_access (const char *where, unsigned int line, void *icb, handle_t *handle, struct buffer_head *bh)
 
int __ext4_forget (const char *where, unsigned int line, void *icb, handle_t *handle, int is_metadata, struct inode *inode, struct buffer_head *bh, ext4_fsblk_t blocknr)
 
int __ext4_journal_get_create_access (const char *where, unsigned int line, void *icb, handle_t *handle, struct buffer_head *bh)
 
int __ext4_handle_dirty_metadata (const char *where, unsigned int line, void *icb, handle_t *handle, struct inode *inode, struct buffer_head *bh)
 
handle_t__ext4_journal_start_sb (void *icb, struct super_block *sb, unsigned int line, int type, int blocks, int rsv_blocks)
 
int __ext4_journal_stop (const char *where, unsigned int line, void *icb, handle_t *handle)
 
static handle_t__ext4_journal_start (void *icb, struct inode *inode, unsigned int line, int type, int blocks, int rsv_blocks)
 
static int ext4_journal_extend (void *icb, handle_t *handle, int nblocks)
 

Macro Definition Documentation

◆ ext4_forget

#define ext4_forget (   handle,
  icb,
  is_metadata,
  inode,
  bh,
  block_nr 
)
Value:
__ext4_forget("", __LINE__, (icb), (handle), (is_metadata), (inode), \
(bh), (block_nr))
int __ext4_forget(const char *where, unsigned int line, void *icb, handle_t *handle, int is_metadata, struct inode *inode, struct buffer_head *bh, ext4_fsblk_t blocknr)
Definition: ext4_jbd2.c:46
Definition: fs.h:78

Definition at line 30 of file ext4_jbd2.h.

◆ ext4_handle_dirty_metadata

#define ext4_handle_dirty_metadata (   handle,
  icb,
  inode,
  bh 
)
Value:
__ext4_handle_dirty_metadata("", __LINE__, (icb), (handle), (inode), \
(bh))
int __ext4_handle_dirty_metadata(const char *where, unsigned int line, void *icb, handle_t *handle, struct inode *inode, struct buffer_head *bh)
Definition: ext4_jbd2.c:61

Definition at line 35 of file ext4_jbd2.h.

◆ ext4_journal_get_create_access

#define ext4_journal_get_create_access (   handle,
  icb,
  bh 
)     __ext4_journal_get_create_access("", __LINE__, (icb), (handle), (bh))

Definition at line 33 of file ext4_jbd2.h.

◆ ext4_journal_get_write_access

#define ext4_journal_get_write_access (   handle,
  icb,
  bh 
)     __ext4_journal_get_write_access("", __LINE__, (icb), (handle), (bh))

Definition at line 28 of file ext4_jbd2.h.

◆ ext4_journal_start

#define ext4_journal_start (   icb,
  inode,
  type,
  nblocks 
)     __ext4_journal_start((icb), (inode), __LINE__, (type), (nblocks), 0)

Definition at line 46 of file ext4_jbd2.h.

◆ ext4_journal_start_sb

#define ext4_journal_start_sb (   icb,
  sb,
  type,
  nblocks 
)     __ext4_journal_start_sb((icb), (sb), __LINE__, (type), (nblocks), 0)

Definition at line 43 of file ext4_jbd2.h.

◆ ext4_journal_stop

#define ext4_journal_stop (   icb,
  handle 
)     __ext4_journal_stop("", __LINE__, (icb), (handle))

Definition at line 57 of file ext4_jbd2.h.

Function Documentation

◆ __ext4_forget()

int __ext4_forget ( const char where,
unsigned int  line,
void icb,
handle_t handle,
int  is_metadata,
struct inode inode,
struct buffer_head bh,
ext4_fsblk_t  blocknr 
)

Definition at line 46 of file ext4_jbd2.c.

49{
50 int err = 0;
51 return err;
52}
#define err(...)

◆ __ext4_handle_dirty_metadata()

int __ext4_handle_dirty_metadata ( const char where,
unsigned int  line,
void icb,
handle_t handle,
struct inode inode,
struct buffer_head bh 
)

Definition at line 61 of file ext4_jbd2.c.

64{
65 int err = 0;
66
68 return err;
69}
void extents_mark_buffer_dirty(struct buffer_head *bh)
Definition: ext4_bh.c:39

Referenced by __ext4_ext_dirty().

◆ __ext4_handle_dirty_super()

int __ext4_handle_dirty_super ( const char where,
unsigned int  line,
handle_t handle,
struct super_block sb 
)

Definition at line 71 of file ext4_jbd2.c.

73{
74 return 0;
75}

◆ __ext4_journal_get_create_access()

int __ext4_journal_get_create_access ( const char where,
unsigned int  line,
void icb,
handle_t handle,
struct buffer_head bh 
)

Definition at line 54 of file ext4_jbd2.c.

56{
57 int err = 0;
58 return err;
59}

◆ __ext4_journal_get_write_access()

int __ext4_journal_get_write_access ( const char where,
unsigned int  line,
void icb,
handle_t handle,
struct buffer_head bh 
)

Definition at line 27 of file ext4_jbd2.c.

29{
30 int err = 0;
31 return err;
32}

◆ __ext4_journal_start()

static handle_t * __ext4_journal_start ( void icb,
struct inode inode,
unsigned int  line,
int  type,
int  blocks,
int  rsv_blocks 
)
inlinestatic

Definition at line 49 of file ext4_jbd2.h.

52{
54 rsv_blocks);
55}
handle_t * __ext4_journal_start_sb(void *icb, struct super_block *sb, unsigned int line, int type, int blocks, int rsv_blocks)
Definition: ext4_jbd2.c:10
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
static int blocks
Definition: mkdosfs.c:527
struct super_block * i_sb
Definition: fs.h:96
Definition: parser.c:49

◆ __ext4_journal_start_sb()

handle_t * __ext4_journal_start_sb ( void icb,
struct super_block sb,
unsigned int  line,
int  type,
int  blocks,
int  rsv_blocks 
)

Definition at line 10 of file ext4_jbd2.c.

12{
13 return &no_journal;
14}
static handle_t no_journal
Definition: ext4_jbd2.c:8

Referenced by __ext4_journal_start().

◆ __ext4_journal_stop()

int __ext4_journal_stop ( const char where,
unsigned int  line,
void icb,
handle_t handle 
)

Definition at line 16 of file ext4_jbd2.c.

17{
18 return 0;
19}

◆ ext4_journal_abort_handle()

void ext4_journal_abort_handle ( const char caller,
unsigned int  line,
const char err_fn,
struct buffer_head bh,
handle_t handle,
int  err 
)

Definition at line 21 of file ext4_jbd2.c.

24{
25}

◆ ext4_journal_extend()

static int ext4_journal_extend ( void icb,
handle_t handle,
int  nblocks 
)
inlinestatic

Definition at line 60 of file ext4_jbd2.h.

61{
62 return 0;
63}

Referenced by ext4_ext_try_to_merge_up().