aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk.kim@samsung.com>2014-04-29 20:18:53 -0400
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2014-05-06 21:21:58 -0400
commitbde446866c9200fcfa27ccde213d83db9a6827db (patch)
treeb83d6e6a680a2d10c349071e43357c7f8ed7475e /fs
parent9ac1349ad7e57013d6aa171cb014ad4166a1b50c (diff)
f2fs: no need to wait on page writebck to meta pages
This patch removes grab_cache_page_write_begin for meta pages. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/f2fs/checkpoint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c
index 1346ce916b84..4206f1664be5 100644
--- a/fs/f2fs/checkpoint.c
+++ b/fs/f2fs/checkpoint.c
@@ -33,12 +33,12 @@ struct page *grab_meta_page(struct f2fs_sb_info *sbi, pgoff_t index)
33 struct address_space *mapping = META_MAPPING(sbi); 33 struct address_space *mapping = META_MAPPING(sbi);
34 struct page *page = NULL; 34 struct page *page = NULL;
35repeat: 35repeat:
36 page = grab_cache_page_write_begin(mapping, index, AOP_FLAG_NOFS); 36 page = grab_cache_page(mapping, index);
37 if (!page) { 37 if (!page) {
38 cond_resched(); 38 cond_resched();
39 goto repeat; 39 goto repeat;
40 } 40 }
41 41 f2fs_wait_on_page_writeback(page, META);
42 SetPageUptodate(page); 42 SetPageUptodate(page);
43 return page; 43 return page;
44} 44}