diff options
author | Yanhu Cao <gmayyyha@gmail.com> | 2020-08-28 09:28:44 +0800 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2021-04-27 23:52:23 +0200 |
commit | e7f72952508ac4354f9bec0607ac8a200d050e65 (patch) | |
tree | 085cc7df14c74d854b97ae98712ec14f5509e221 /fs/ceph/inode.c | |
parent | e72968e15b297a51dcefe93a95e875dcefe6c4aa (diff) | |
download | linux-e7f72952508ac4354f9bec0607ac8a200d050e65.tar.gz linux-e7f72952508ac4354f9bec0607ac8a200d050e65.tar.bz2 linux-e7f72952508ac4354f9bec0607ac8a200d050e65.zip |
ceph: support getting ceph.dir.rsnaps vxattr
Add support for grabbing the rsnaps value out of the inode info in
traces, and exposing that via ceph.dir.rsnaps xattr.
Signed-off-by: Yanhu Cao <gmayyyha@gmail.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
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 2fd1c48ac5d7..d6ff9b4585fa 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c @@ -895,6 +895,7 @@ int ceph_fill_inode(struct inode *inode, struct page *locked_page, ci->i_rfiles = le64_to_cpu(info->rfiles); ci->i_rsubdirs = le64_to_cpu(info->rsubdirs); ci->i_dir_pin = iinfo->dir_pin; + ci->i_rsnaps = iinfo->rsnaps; ceph_decode_timespec64(&ci->i_rctime, &info->rctime); } } |