diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-08-29 18:23:45 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-09-07 17:27:39 -0700 |
commit | bbf156f7afa7f3cc07177f1119878f6f60855fd1 (patch) | |
tree | aff5602ad821fcfeea2bd4cd3eb35017f101e7d9 /fs/f2fs/f2fs.h | |
parent | 275b66b09e85cf0520dc610dd89706952751a473 (diff) | |
download | op-kernel-dev-bbf156f7afa7f3cc07177f1119878f6f60855fd1.zip op-kernel-dev-bbf156f7afa7f3cc07177f1119878f6f60855fd1.tar.gz |
f2fs: fix lost xattrs of directories
This patch enhances the xattr consistency of dirs from suddern power-cuts.
Possible scenario would be:
1. dir->setxattr used by per-file encryption
2. file->setxattr goes into inline_xattr
3. file->fsync
In that case, we should do checkpoint for #1.
Otherwise we'd lose dir's key information for the file given #2.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index c2478a1..b9611d4 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -756,6 +756,7 @@ enum { SBI_NEED_FSCK, /* need fsck.f2fs to fix */ SBI_POR_DOING, /* recovery is doing or not */ SBI_NEED_SB_WRITE, /* need to recover superblock */ + SBI_NEED_CP, /* need to checkpoint */ }; enum { |