]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: trigger correct checkpoint during umount
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 15 Jan 2015 00:34:24 +0000 (16:34 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 12 Feb 2015 01:04:32 +0000 (17:04 -0800)
commit770b3a55fff8097fbf924a160f84377301bfc08e
treecc6d7bb3b2e2c9bbe88ee450ed5d70c4fab233b7
parent110920e8a29bbf14face41d5d21454d015761b78
f2fs: trigger correct checkpoint during umount

This patch fixes to trigger checkpoint with umount flag when kill_sb was called.
In kill_sb, f2fs_sync_fs was finally called, but at this time, f2fs can't do
checkpoint with CP_UMOUNT.
After then, f2fs_put_super is not doing checkpoint, since it is not dirty.

So, this patch adds a flag to indicate f2fs_sync_fs is called during umount.

Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/super.c