|
@@ -846,6 +846,7 @@ enum {
|
|
FI_INC_LINK, /* need to increment i_nlink */
|
|
FI_INC_LINK, /* need to increment i_nlink */
|
|
FI_ACL_MODE, /* indicate acl mode */
|
|
FI_ACL_MODE, /* indicate acl mode */
|
|
FI_NO_ALLOC, /* should not allocate any blocks */
|
|
FI_NO_ALLOC, /* should not allocate any blocks */
|
|
|
|
+ FI_DELAY_IPUT, /* used for the recovery */
|
|
};
|
|
};
|
|
|
|
|
|
static inline void set_inode_flag(struct f2fs_inode_info *fi, int flag)
|
|
static inline void set_inode_flag(struct f2fs_inode_info *fi, int flag)
|
|
@@ -1012,6 +1013,7 @@ int recover_orphan_inodes(struct f2fs_sb_info *);
|
|
int get_valid_checkpoint(struct f2fs_sb_info *);
|
|
int get_valid_checkpoint(struct f2fs_sb_info *);
|
|
void set_dirty_dir_page(struct inode *, struct page *);
|
|
void set_dirty_dir_page(struct inode *, struct page *);
|
|
void remove_dirty_dir_inode(struct inode *);
|
|
void remove_dirty_dir_inode(struct inode *);
|
|
|
|
+struct inode *check_dirty_dir_inode(struct f2fs_sb_info *, nid_t);
|
|
void sync_dirty_dir_inodes(struct f2fs_sb_info *);
|
|
void sync_dirty_dir_inodes(struct f2fs_sb_info *);
|
|
void write_checkpoint(struct f2fs_sb_info *, bool);
|
|
void write_checkpoint(struct f2fs_sb_info *, bool);
|
|
void init_orphan_info(struct f2fs_sb_info *);
|
|
void init_orphan_info(struct f2fs_sb_info *);
|