ReactOS 0.4.16-dev-306-g647d351
ext4_jbd2.c
Go to the documentation of this file.
1#include "ext2fs.h"
2#ifdef __REACTOS__
3#include "linux/ext4.h"
4#else
5#include "linux\ext4.h"
6#endif
7
9
10handle_t *__ext4_journal_start_sb(void *icb, struct super_block *sb, unsigned int line,
11 int type, int blocks, int rsv_blocks)
12{
13 return &no_journal;
14}
15
16int __ext4_journal_stop(const char *where, unsigned int line, void *icb, handle_t *handle)
17{
18 return 0;
19}
20
21void ext4_journal_abort_handle(const char *caller, unsigned int line,
22 const char *err_fn, struct buffer_head *bh,
23 handle_t *handle, int err)
24{
25}
26
27int __ext4_journal_get_write_access(const char *where, unsigned int line,
28 void *icb, handle_t *handle, struct buffer_head *bh)
29{
30 int err = 0;
31 return err;
32}
33
34/*
35 * The ext4 forget function must perform a revoke if we are freeing data
36 * which has been journaled. Metadata (eg. indirect blocks) must be
37 * revoked in all cases.
38 *
39 * "bh" may be NULL: a metadata block may have been freed from memory
40 * but there may still be a record of it in the journal, and that record
41 * still needs to be revoked.
42 *
43 * If the handle isn't valid we're not journaling, but we still need to
44 * call into ext4_journal_revoke() to put the buffer head.
45 */
46int __ext4_forget(const char *where, unsigned int line, void *icb, handle_t *handle,
47 int is_metadata, struct inode *inode,
48 struct buffer_head *bh, ext4_fsblk_t blocknr)
49{
50 int err = 0;
51 return err;
52}
53
54int __ext4_journal_get_create_access(const char *where, unsigned int line,
55 void *icb, handle_t *handle, struct buffer_head *bh)
56{
57 int err = 0;
58 return err;
59}
60
61int __ext4_handle_dirty_metadata(const char *where, unsigned int line,
62 void *icb, handle_t *handle, struct inode *inode,
63 struct buffer_head *bh)
64{
65 int err = 0;
66
68 return err;
69}
70
71int __ext4_handle_dirty_super(const char *where, unsigned int line,
72 handle_t *handle, struct super_block *sb)
73{
74 return 0;
75}
superblock * sb
Definition: btrfs.c:4261
unsigned long long ext4_fsblk_t
Definition: ext3_fs_i.h:27
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
static handle_t no_journal
Definition: ext4_jbd2.c:8
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
int __ext4_journal_stop(const char *where, unsigned int line, void *icb, handle_t *handle)
Definition: ext4_jbd2.c:16
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
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: ext4_jbd2.c:21
int __ext4_journal_get_create_access(const char *where, unsigned int line, void *icb, handle_t *handle, struct buffer_head *bh)
Definition: ext4_jbd2.c:54
int __ext4_journal_get_write_access(const char *where, unsigned int line, void *icb, handle_t *handle, struct buffer_head *bh)
Definition: ext4_jbd2.c:27
int __ext4_handle_dirty_super(const char *where, unsigned int line, handle_t *handle, struct super_block *sb)
Definition: ext4_jbd2.c:71
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
static int blocks
Definition: mkdosfs.c:527
void extents_mark_buffer_dirty(struct buffer_head *bh)
Definition: ext4_bh.c:39
#define err(...)
Definition: fs.h:78
Definition: parser.c:49
Definition: fs.h:64