diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-11-05 23:05:53 -0500 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-11-05 23:05:53 -0500 |
commit | a344b9fda0cc2eda54433227837029d410dfb12f (patch) | |
tree | 9a974eb5b2ae721da7fb50b8301149ad153f06f2 /fs/f2fs/file.c | |
parent | d5053a34a9cc797b9d5d77574354b5555848c43c (diff) |
f2fs: disable roll-forward when active_logs = 2
The roll-forward mechanism should be activated when the number of active
logs is not 2.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r-- | fs/f2fs/file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 46311e7b388a..54722a0a5be5 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c | |||
@@ -132,6 +132,8 @@ static inline bool need_do_checkpoint(struct inode *inode) | |||
132 | need_cp = true; | 132 | need_cp = true; |
133 | else if (test_opt(sbi, FASTBOOT)) | 133 | else if (test_opt(sbi, FASTBOOT)) |
134 | need_cp = true; | 134 | need_cp = true; |
135 | else if (sbi->active_logs == 2) | ||
136 | need_cp = true; | ||
135 | 137 | ||
136 | return need_cp; | 138 | return need_cp; |
137 | } | 139 | } |