diff options
author | Yunlei He <heyunlei@huawei.com> | 2017-03-13 13:22:18 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-03-25 08:19:37 +0100 |
commit | 59c9081bc86ef0b273a41abf2c1f413301429a6d (patch) | |
tree | 64297b01f018b2eff6ae04e6668a06e4eafcba97 /fs/f2fs/f2fs.h | |
parent | f2fs: don't reserve additional space in xattr block (diff) | |
download | linux-59c9081bc86ef0b273a41abf2c1f413301429a6d.tar.xz linux-59c9081bc86ef0b273a41abf2c1f413301429a6d.zip |
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/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 340d62c29a98..6fbdcac01d9a 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -830,6 +830,7 @@ struct f2fs_sb_info { struct mutex cp_mutex; /* checkpoint procedure lock */ struct rw_semaphore cp_rwsem; /* blocking FS operations */ struct rw_semaphore node_write; /* locking node writes */ + struct rw_semaphore node_change; /* locking node change */ wait_queue_head_t cp_wait; unsigned long last_time[MAX_TIME]; /* to store time in jiffies */ long interval_time[MAX_TIME]; /* to store thresholds */ |