From: Jaegeuk Kim Date: Wed, 30 Apr 2014 00:18:53 +0000 (+0900) Subject: f2fs: no need to wait on page writebck to meta pages X-Git-Tag: v4.9.8~6287^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bde446866c9200fcfa27ccde213d83db9a6827db;p=platform%2Fkernel%2Flinux-rpi3.git 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 --- diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index 1346ce9..4206f16 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) struct address_space *mapping = META_MAPPING(sbi); struct page *page = NULL; repeat: - page = grab_cache_page_write_begin(mapping, index, AOP_FLAG_NOFS); + page = grab_cache_page(mapping, index); if (!page) { cond_resched(); goto repeat; } - + f2fs_wait_on_page_writeback(page, META); SetPageUptodate(page); return page; }