1 #include "ext2fs.h" 2 #ifdef __REACTOS__ 3 #include "linux/ext4.h" 4 #else 5 #include "linux\ext4.h" 6 #endif 7 8 static handle_t no_journal; 9 10 handle_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 16 int __ext4_journal_stop(const char *where, unsigned int line, void *icb, handle_t *handle) 17 { 18 return 0; 19 } 20 21 void 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 27 int __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 */ 46 int __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 54 int __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 61 int __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 67 extents_mark_buffer_dirty(bh); 68 return err; 69 } 70 71 int __ext4_handle_dirty_super(const char *where, unsigned int line, 72 handle_t *handle, struct super_block *sb) 73 { 74 return 0; 75 } 76