diff options
author | Hou Pengyang <houpengyang@huawei.com> | 2017-04-26 18:17:21 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-05-03 19:04:54 +0200 |
commit | 279d6df20c94079d35e012f1602d40c42632e8f3 (patch) | |
tree | 2570480070d63ca08bf3f99cbdb0330e7622ee00 /fs/f2fs/segment.c | |
parent | f2fs: shrink size of struct discard_cmd (diff) | |
download | linux-279d6df20c94079d35e012f1602d40c42632e8f3.tar.xz linux-279d6df20c94079d35e012f1602d40c42632e8f3.zip |
f2fs: release cp and dnode lock before IPU
We don't need to rewrite the page under cp_rwsem and dnode locks.
Signed-off-by: Hou Pengyang <houpengyang@huawei.com>
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | fs/f2fs/segment.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 656e1515ff56..e302f30ec7fe 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -312,6 +312,7 @@ static int __commit_inmem_pages(struct inode *inode, fio.page = page; fio.old_blkaddr = NULL_ADDR; fio.encrypted_page = NULL; + fio.need_lock = false, err = do_write_data_page(&fio); if (err) { unlock_page(page); |