diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-05-20 19:32:49 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-06-02 21:05:12 -0400 |
commit | ee6d182f2a19d5d44607b5ae4bec523726d76a99 (patch) | |
tree | 514092851eb0e974c6ac8add90fed10056b84998 /fs/f2fs/f2fs.h | |
parent | 0f18b462b2e5aff64b8638e8a47284b907351ef3 (diff) |
f2fs: remove syncing inode page in all the cases
This patch reduces to call them across the whole tree.
- sync_inode_page()
- update_inode_page()
- update_inode()
- f2fs_write_inode()
Instead, checkpoint will flush all the dirty inode metadata before syncing
node pages.
Note that, this is doable, since we call mark_inode_dirty_sync() for all
inode's field change which needs to update on-disk inode as well.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index b541164ce5af..2adef0e58461 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h | |||
@@ -1521,7 +1521,6 @@ enum { | |||
1521 | FI_ACL_MODE, /* indicate acl mode */ | 1521 | FI_ACL_MODE, /* indicate acl mode */ |
1522 | FI_NO_ALLOC, /* should not allocate any blocks */ | 1522 | FI_NO_ALLOC, /* should not allocate any blocks */ |
1523 | FI_FREE_NID, /* free allocated nide */ | 1523 | FI_FREE_NID, /* free allocated nide */ |
1524 | FI_UPDATE_DIR, /* should update inode block for consistency */ | ||
1525 | FI_NO_EXTENT, /* not to use the extent cache */ | 1524 | FI_NO_EXTENT, /* not to use the extent cache */ |
1526 | FI_INLINE_XATTR, /* used for inline xattr */ | 1525 | FI_INLINE_XATTR, /* used for inline xattr */ |
1527 | FI_INLINE_DATA, /* used for inline data*/ | 1526 | FI_INLINE_DATA, /* used for inline data*/ |
@@ -1936,7 +1935,6 @@ struct page *new_node_page(struct dnode_of_data *, unsigned int, struct page *); | |||
1936 | void ra_node_page(struct f2fs_sb_info *, nid_t); | 1935 | void ra_node_page(struct f2fs_sb_info *, nid_t); |
1937 | struct page *get_node_page(struct f2fs_sb_info *, pgoff_t); | 1936 | struct page *get_node_page(struct f2fs_sb_info *, pgoff_t); |
1938 | struct page *get_node_page_ra(struct page *, int); | 1937 | struct page *get_node_page_ra(struct page *, int); |
1939 | void sync_inode_page(struct dnode_of_data *); | ||
1940 | void move_node_page(struct page *, int); | 1938 | void move_node_page(struct page *, int); |
1941 | int fsync_node_pages(struct f2fs_sb_info *, nid_t, struct writeback_control *, | 1939 | int fsync_node_pages(struct f2fs_sb_info *, nid_t, struct writeback_control *, |
1942 | bool); | 1940 | bool); |