diff options
author | Hou Pengyang <houpengyang@huawei.com> | 2017-04-26 19:17:21 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-05-03 20:04:54 +0300 |
commit | 279d6df20c94079d35e012f1602d40c42632e8f3 (patch) | |
tree | 2570480070d63ca08bf3f99cbdb0330e7622ee00 /fs/f2fs/gc.c | |
parent | 9a744b92da6eacea33dec1e9280fd324736bfe81 (diff) | |
download | linux-279d6df20c94079d35e012f1602d40c42632e8f3.tar.xz |
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 'fs/f2fs/gc.c')
-rw-r--r-- | fs/f2fs/gc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index c2a9ae8397d3..026522107ca3 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c @@ -717,6 +717,7 @@ static void move_data_page(struct inode *inode, block_t bidx, int gc_type, .old_blkaddr = NULL_ADDR, .page = page, .encrypted_page = NULL, + .need_lock = true, }; bool is_dirty = PageDirty(page); int err; |