aboutsummaryrefslogtreecommitdiff
path: root/include/f2fs_fs.h
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2018-07-28 18:41:35 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2018-08-27 23:52:39 -0700
commit91bb7b21f740d61cde2bb27da3dccb0afdd5a15b (patch)
tree2763161b6dbf3cc2541bff9052f85be80a18ae85 /include/f2fs_fs.h
parentfae19d820024938cbabb3aef089d7c4479012f62 (diff)
downloadf2fs-tools-91bb7b21f740d61cde2bb27da3dccb0afdd5a15b.tar.gz
f2fs-tools: fix to reset i_gc_failures offline
This patch synchronize f2fs_inode structure from kernel side, in addition, it adds to check .i_gc_failures and do resetting in fsck. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include/f2fs_fs.h')
-rw-r--r--include/f2fs_fs.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h
index ef13bf0..4ffc35f 100644
--- a/include/f2fs_fs.h
+++ b/include/f2fs_fs.h
@@ -785,7 +785,13 @@ struct f2fs_inode {
__le32 i_ctime_nsec; /* change time in nano scale */
__le32 i_mtime_nsec; /* modification time in nano scale */
__le32 i_generation; /* file version (for NFS) */
- __le32 i_current_depth; /* only for directory depth */
+ union {
+ __le32 i_current_depth; /* only for directory depth */
+ __le16 i_gc_failures; /*
+ * # of gc failures on pinned file.
+ * only for regular files.
+ */
+ };
__le32 i_xattr_nid; /* nid to save xattr */
__le32 i_flags; /* file attributes */
__le32 i_pino; /* parent inode number */