summaryrefslogtreecommitdiff
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorYunlei He <heyunlei@huawei.com>2017-03-13 15:22:18 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2017-03-25 10:19:37 +0300
commit59c9081bc86ef0b273a41abf2c1f413301429a6d (patch)
tree64297b01f018b2eff6ae04e6668a06e4eafcba97 /fs/f2fs/super.c
parent22588f8773f687449ce6e97dce9f102553440d30 (diff)
downloadlinux-59c9081bc86ef0b273a41abf2c1f413301429a6d.tar.xz
f2fs: allow write page cache when writting cp
This patch allow write data to normal file when writting new checkpoint. We relax three limitations for write_begin path: 1. data allocation 2. node allocation 3. variables in checkpoint Signed-off-by: Yunlei He <heyunlei@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/super.c')
-rw-r--r--fs/f2fs/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 17126a2897ad..49434f951ace 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -1918,6 +1918,7 @@ try_onemore:
mutex_init(&sbi->gc_mutex);
mutex_init(&sbi->cp_mutex);
init_rwsem(&sbi->node_write);
+ init_rwsem(&sbi->node_change);
/* disallow all the data/node/meta page writes */
set_sbi_flag(sbi, SBI_POR_DOING);