summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2018-01-25 09:54:42 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2018-01-26 01:10:39 +0300
commit1c1d35df71104c76a4a2e25862926f22c334c9d6 (patch)
tree402a1bdd7b6df8812a99c053946fe1ac0157bff0 /include
parent068c3cd85866785303f18960a4c00a182515b963 (diff)
downloadlinux-1c1d35df71104c76a4a2e25862926f22c334c9d6.tar.xz
f2fs: support inode creation time
This patch adds creation time field in inode layout to support showing kstat.btime in ->statx. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/f2fs_fs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/f2fs_fs.h b/include/linux/f2fs_fs.h
index 6eed677b6d9a..58aecb60ea51 100644
--- a/include/linux/f2fs_fs.h
+++ b/include/linux/f2fs_fs.h
@@ -253,8 +253,10 @@ struct f2fs_inode {
__le16 i_inline_xattr_size; /* inline xattr size, unit: 4 bytes */
__le32 i_projid; /* project id */
__le32 i_inode_checksum;/* inode meta checksum */
+ __le64 i_crtime; /* creation time */
+ __le32 i_crtime_nsec; /* creation time in nano scale */
__le32 i_extra_end[0]; /* for attribute size calculation */
- };
+ } __packed;
__le32 i_addr[DEF_ADDRS_PER_INODE]; /* Pointers to data blocks */
};
__le32 i_nid[DEF_NIDS_PER_INODE]; /* direct(2), indirect(2),