diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-04-29 17:35:10 +0900 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-05-07 10:21:58 +0900 |
commit | 9ac1349ad7e57013d6aa171cb014ad4166a1b50c (patch) | |
tree | b59541c6af624cc1ad606874f6289636daeb8356 /fs/f2fs/data.c | |
parent | 54b591dfda1f5ab0bc2a9ce1bee5364110168777 (diff) | |
download | lwn-9ac1349ad7e57013d6aa171cb014ad4166a1b50c.tar.gz lwn-9ac1349ad7e57013d6aa171cb014ad4166a1b50c.zip |
f2fs: avoid grab_cache_page_write_begin for data pages
We don't need to wait on page writeback for these cases.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r-- | fs/f2fs/data.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 273fe1631af9..91ff104b3849 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -417,7 +417,7 @@ struct page *find_data_page(struct inode *inode, pgoff_t index, bool sync) if (unlikely(dn.data_blkaddr == NEW_ADDR)) return ERR_PTR(-EINVAL); - page = grab_cache_page_write_begin(mapping, index, AOP_FLAG_NOFS); + page = grab_cache_page(mapping, index); if (!page) return ERR_PTR(-ENOMEM); @@ -455,7 +455,7 @@ struct page *get_lock_data_page(struct inode *inode, pgoff_t index) int err; repeat: - page = grab_cache_page_write_begin(mapping, index, AOP_FLAG_NOFS); + page = grab_cache_page(mapping, index); if (!page) return ERR_PTR(-ENOMEM); |