diff options
author | David Disseldorp <ddiss@suse.de> | 2019-04-18 15:15:46 +0300 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2019-07-08 15:01:40 +0300 |
commit | 193e7b37628e97c6e66ec26a2c062dace68b4acd (patch) | |
tree | 24bcc4b4dc2d768479ab76a1e7e1609c6319059b /fs/ceph/inode.c | |
parent | e1b814391440b65df0836cef8c7b641fb83f4bf6 (diff) | |
download | linux-193e7b37628e97c6e66ec26a2c062dace68b4acd.tar.xz |
ceph: carry snapshot creation time with inodes
MDS InodeStat v3 wire structures include a trailing snapshot creation
time member. Unmarshall this and retain it for a future vxattr.
Signed-off-by: David Disseldorp <ddiss@suse.de>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/inode.c')
-rw-r--r-- | fs/ceph/inode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index 761451f36e2d..eb35d47d4e2e 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c @@ -813,6 +813,7 @@ static int fill_inode(struct inode *inode, struct page *locked_page, dout("%p mode 0%o uid.gid %d.%d\n", inode, inode->i_mode, from_kuid(&init_user_ns, inode->i_uid), from_kgid(&init_user_ns, inode->i_gid)); + ceph_decode_timespec64(&ci->i_snap_btime, &iinfo->snap_btime); } if ((new_version || (new_issued & CEPH_CAP_LINK_SHARED)) && |