]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
f2fs: split UMOUNT and FASTBOOT flags
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 29 Jan 2015 19:45:33 +0000 (11:45 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 12 Feb 2015 01:04:41 +0000 (17:04 -0800)
commit119ee9144534141822462e3e8a5ccc8dc537f712
treed1db8598f68e80459d40343d70883a62606de7d5
parent11504a8e7e20e2ff2e68176850e9b83b8bae760e
f2fs: split UMOUNT and FASTBOOT flags

This patch adds FASTBOOT flag into checkpoint as follows.

 - CP_UMOUNT_FLAG is set when system is umounted.
 - CP_FASTBOOT_FLAG is set when intermediate checkpoint having node summaries
   was done.

So, if you get CP_UMOUNT_FLAG from checkpoint, the system was umounted cleanly.
Instead, if there was sudden-power-off, you can get CP_FASTBOOT_FLAG or nothing.

Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c
fs/f2fs/f2fs.h
fs/f2fs/gc.c
fs/f2fs/segment.c
fs/f2fs/super.c
include/linux/f2fs_fs.h
include/trace/events/f2fs.h