summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-01-14 16:34:24 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2015-02-11 17:04:32 -0800
commit30a5537f9a9e91937aad6a47f55683f7ce0be257 (patch)
treecc6d7bb3b2e2c9bbe88ee450ed5d70c4fab233b7 /fs/f2fs/f2fs.h
parent6f0aacbc3c1d71078d0f9eb47f8c422bb58fffd7 (diff)
downloadop-kernel-dev-30a5537f9a9e91937aad6a47f55683f7ce0be257.zip
op-kernel-dev-30a5537f9a9e91937aad6a47f55683f7ce0be257.tar.gz
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>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r--fs/f2fs/f2fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index c2cf040..1795ce2 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -525,6 +525,7 @@ struct f2fs_sb_info {
struct f2fs_super_block *raw_super; /* raw super block pointer */
int s_dirty; /* dirty flag for checkpoint */
bool need_fsck; /* need fsck.f2fs to fix */
+ bool s_closing; /* specify unmounting */
/* for node-related operations */
struct f2fs_nm_info *nm_info; /* node manager */
OpenPOWER on IntegriCloud