f2fs: remove redundant set_page_dirty()
authorYunlei He <heyunlei@huawei.com>
Mon, 27 Feb 2017 10:59:53 +0000 (18:59 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 27 Feb 2017 18:40:11 +0000 (10:40 -0800)
This patch remove redundant set_page_dirty in truncate_blocks

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

index 36c156557bb18b09c0c5ef944c8beeff44c8d586..c6ca00c872654e29a0ba35e5bf2ae8a9f10e6f40 100644 (file)
@@ -567,8 +567,7 @@ int truncate_blocks(struct inode *inode, u64 from, bool lock)
        }
 
        if (f2fs_has_inline_data(inode)) {
-               if (truncate_inline_inode(ipage, from))
-                       set_page_dirty(ipage);
+               truncate_inline_inode(ipage, from);
                if (from == 0)
                        clear_inode_flag(inode, FI_DATA_EXIST);
                f2fs_put_page(ipage, 1);