]> git.karo-electronics.de Git - linux-beck.git/commitdiff
f2fs: delete unnecessary wait for page writeback
authorYunlei He <heyunlei@huawei.com>
Wed, 3 Feb 2016 02:26:13 +0000 (10:26 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 23 Feb 2016 00:07:23 +0000 (16:07 -0800)
no need to wait inline file page writeback for no one
use it, so this patch delete unnecessary wait.

Signed-off-by: Yunlei He <heyunlei@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/inline.c

index fc4d298459385062178dbab3c49b56ba9656ae57..0be4a9b400c63db0fecd285b3ad21fe665cb5f7f 100644 (file)
@@ -124,8 +124,7 @@ int f2fs_convert_inline_page(struct dnode_of_data *dn, struct page *page)
        if (err)
                return err;
 
-       f2fs_wait_on_page_writeback(page, DATA, true);
-
+       f2fs_bug_on(F2FS_P_SB(page), PageWriteback(page));
        if (PageUptodate(page))
                goto no_update;