diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-10-31 01:57:01 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-10-31 03:01:03 -0400 |
commit | cfe58f9dcd9afe181894e2257e3f8aa3fee840c5 (patch) | |
tree | 1acd83b88bb0cb1aed28ffe3ae6091f69bd0f091 /fs/f2fs/f2fs.h | |
parent | 44c60bf2b9f2808e127fa4cd3b11b50a46cf5817 (diff) |
f2fs: avoid to wait all the node blocks during fsync
Previously, f2fs_sync_file() waits for all the node blocks to be written.
But, we don't need to do that, but wait only the inode-related node blocks.
This patch adds wait_on_node_pages_writeback() in which waits inode-related
node blocks that are on writeback.
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 6aaefdbaaac0..625eb4befad4 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h | |||
@@ -1026,6 +1026,7 @@ void get_node_info(struct f2fs_sb_info *, nid_t, struct node_info *); | |||
1026 | int get_dnode_of_data(struct dnode_of_data *, pgoff_t, int); | 1026 | int get_dnode_of_data(struct dnode_of_data *, pgoff_t, int); |
1027 | int truncate_inode_blocks(struct inode *, pgoff_t); | 1027 | int truncate_inode_blocks(struct inode *, pgoff_t); |
1028 | int truncate_xattr_node(struct inode *, struct page *); | 1028 | int truncate_xattr_node(struct inode *, struct page *); |
1029 | int wait_on_node_pages_writeback(struct f2fs_sb_info *, nid_t); | ||
1029 | int remove_inode_page(struct inode *); | 1030 | int remove_inode_page(struct inode *); |
1030 | struct page *new_inode_page(struct inode *, const struct qstr *); | 1031 | struct page *new_inode_page(struct inode *, const struct qstr *); |
1031 | struct page *new_node_page(struct dnode_of_data *, unsigned int, struct page *); | 1032 | struct page *new_node_page(struct dnode_of_data *, unsigned int, struct page *); |