commit | a344b9fda0cc2eda54433227837029d410dfb12f | [log] [tgz] |
---|---|---|
author | Jaegeuk Kim <jaegeuk@kernel.org> | Wed Nov 05 20:05:53 2014 -0800 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Wed Nov 05 20:05:53 2014 -0800 |
tree | 9a974eb5b2ae721da7fb50b8301149ad153f06f2 | |
parent | d5053a34a9cc797b9d5d77574354b5555848c43c [diff] [blame] |
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>
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 46311e7..54722a0 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c
@@ -132,6 +132,8 @@ need_cp = true; else if (test_opt(sbi, FASTBOOT)) need_cp = true; + else if (sbi->active_logs == 2) + need_cp = true; return need_cp; }