f2fs: avoid needless sync_inode_page when reading inline_data
authorJaegeuk Kim <jaegeuk@kernel.org>
Mon, 25 Jan 2016 18:48:50 +0000 (10:48 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 23 Feb 2016 00:07:23 +0000 (16:07 -0800)
In write_begin, if there is an inline_data, f2fs loads it into 0'th data page.
Since it's the read path, we don't need to sync its inode page.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c

index 24c65e9823b7c70f14b62e52e9e30b032a437426..f0ffb15af00908bf01912cabfbdf3420c55dc3ff 100644 (file)
@@ -1464,7 +1464,6 @@ restart:
                        read_inline_data(page, ipage);
                        set_inode_flag(F2FS_I(inode), FI_DATA_EXIST);
                        set_inline_node(ipage);
-                       sync_inode_page(&dn);
                } else {
                        err = f2fs_convert_inline_page(&dn, page);
                        if (err)
This page took 0.07489 seconds and 5 git commands to generate.