summaryrefslogtreecommitdiff
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorHou Pengyang <houpengyang@huawei.com>2017-04-26 19:17:21 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2017-05-03 20:04:54 +0300
commit279d6df20c94079d35e012f1602d40c42632e8f3 (patch)
tree2570480070d63ca08bf3f99cbdb0330e7622ee00 /fs/f2fs/f2fs.h
parent9a744b92da6eacea33dec1e9280fd324736bfe81 (diff)
downloadlinux-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/f2fs.h')
-rw-r--r--fs/f2fs/f2fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 6f671c719570..713f072e5fbc 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -803,7 +803,7 @@ struct f2fs_io_info {
struct page *page; /* page to be written */
struct page *encrypted_page; /* encrypted page */
bool submitted; /* indicate IO submission */
- bool cp_rwsem_locked; /* indicate cp_rwsem is held */
+ bool need_lock; /* indicate we need to lock cp_rwsem */
};
#define is_read_io(rw) ((rw) == READ)