f2fs: no need to wait on page writebck to meta pages
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 30 Apr 2014 00:18:53 +0000 (09:18 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 7 May 2014 01:21:58 +0000 (10:21 +0900)
This patch removes grab_cache_page_write_begin for meta pages.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/checkpoint.c

index 1346ce916b8484a0c2304817911e83bf19609373..4206f1664be51c8e918170ee40792b8cda0d09ca 100644 (file)
@@ -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;
 }