diff options
author | Yunlei He <heyunlei@huawei.com> | 2017-03-13 20:22:18 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-03-25 00:19:37 -0700 |
commit | 59c9081bc86ef0b273a41abf2c1f413301429a6d (patch) | |
tree | 64297b01f018b2eff6ae04e6668a06e4eafcba97 /fs/f2fs/super.c | |
parent | 22588f8773f687449ce6e97dce9f102553440d30 (diff) |
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.c | 1 |
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); |