f2fs: avoid needless sync_inode_page when reading inline_data

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>
This commit is contained in:
Jaegeuk Kim 2016-01-25 10:48:50 -08:00
parent 52f8033712
commit ae96e7bdd4
1 changed files with 0 additions and 1 deletions

View File

@ -1464,7 +1464,6 @@ restart:
read_inline_data(page, ipage); read_inline_data(page, ipage);
set_inode_flag(F2FS_I(inode), FI_DATA_EXIST); set_inode_flag(F2FS_I(inode), FI_DATA_EXIST);
set_inline_node(ipage); set_inline_node(ipage);
sync_inode_page(&dn);
} else { } else {
err = f2fs_convert_inline_page(&dn, page); err = f2fs_convert_inline_page(&dn, page);
if (err) if (err)