summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2017-04-18 19:23:39 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2017-04-19 11:00:44 -0700
commit001c584cca6fce8e91f19eca88781b8c16d1ea42 (patch)
treed5c7df8a2797882c41b95e3ffeebd0ee3c496fae /fs/f2fs/f2fs.h
parentdf0f6b44dd59cd07aa3ff583dee04b3b563648d0 (diff)
downloadlinux-001c584cca6fce8e91f19eca88781b8c16d1ea42.tar.bz2
f2fs: unlock cp_rwsem early for IPU writes
For IPU writes, there won't be any udpates in dnode page since we will reuse old block address instead of allocating new one, so we don't need to lock cp_rwsem during IPU IO submitting. Signed-off-by: Chao Yu <yuchao0@huawei.com>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r--fs/f2fs/f2fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 252569141b69..37911ef7223d 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -793,6 +793,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 */
};
#define is_read_io(rw) ((rw) == READ)