Commit dd7b2333 authored by Yunlei He's avatar Yunlei He Committed by Jaegeuk Kim

f2fs: no need lock_op in f2fs_write_inline_data

Similar as f2fs_write_inode, f2fs_write_inline_data just
mark inode page dirty, so it's no need to write inline data
under read lock of cp_rwsem.
Signed-off-by: default avatarYunlei He <heyunlei@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 22ad0b6a
...@@ -1414,9 +1414,12 @@ static int __write_data_page(struct page *page, bool *submitted, ...@@ -1414,9 +1414,12 @@ static int __write_data_page(struct page *page, bool *submitted,
goto redirty_out; goto redirty_out;
err = -EAGAIN; err = -EAGAIN;
f2fs_lock_op(sbi); if (f2fs_has_inline_data(inode)) {
if (f2fs_has_inline_data(inode))
err = f2fs_write_inline_data(inode, page); err = f2fs_write_inline_data(inode, page);
if (!err)
goto out;
}
f2fs_lock_op(sbi);
if (err == -EAGAIN) if (err == -EAGAIN)
err = do_write_data_page(&fio); err = do_write_data_page(&fio);
if (F2FS_I(inode)->last_disk_size < psize) if (F2FS_I(inode)->last_disk_size < psize)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment