]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: get file size from fscrypt_file when present in inode traces
authorJeff Layton <jlayton@kernel.org>
Thu, 25 Aug 2022 13:31:08 +0000 (09:31 -0400)
committerXiubo Li <xiubli@redhat.com>
Fri, 26 Aug 2022 23:58:54 +0000 (07:58 +0800)
commit97cb0bf7d11fffa790a87f4a66039510d8edff81
tree023cfbf1c450e8b1ead872df7a74a10619051ce9
parentfa6018356d5473b853417de500a2afa85c6bd226
ceph: get file size from fscrypt_file when present in inode traces

When we get an inode trace from the MDS, grab the fscrypt_file field if
the inode is encrypted, and use it to populate the i_size field instead
of the regular inode size field.

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/ceph/inode.c