diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-04-09 17:03:53 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-04-16 09:45:40 -0700 |
commit | 10027551ccf5459cc771c31ac8bc8e5cc8db45f8 (patch) | |
tree | eae6cfe1d0daae9d6ed5e30d63e2f966af847d46 /fs/f2fs/recovery.c | |
parent | feb7cbb079e63ebb7c0bd7022d2ba9c1dd15c69b (diff) | |
download | op-kernel-dev-10027551ccf5459cc771c31ac8bc8e5cc8db45f8.zip op-kernel-dev-10027551ccf5459cc771c31ac8bc8e5cc8db45f8.tar.gz |
f2fs: pass checkpoint reason on roll-forward recovery
This patch adds CP_RECOVERY to remain recovery information for checkpoint.
And, it makes sure writing checkpoint in this case.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/recovery.c')
-rw-r--r-- | fs/f2fs/recovery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c index 4b742c9..8d8ea99 100644 --- a/fs/f2fs/recovery.c +++ b/fs/f2fs/recovery.c @@ -564,7 +564,7 @@ out: mutex_unlock(&sbi->cp_mutex); } else if (need_writecp) { struct cp_control cpc = { - .reason = CP_SYNC, + .reason = CP_RECOVERY, }; mutex_unlock(&sbi->cp_mutex); write_checkpoint(sbi, &cpc); |