ceph: fix incorrectly showing the .snap size for stat
authorXiubo Li <xiubli@redhat.com>
Wed, 31 Aug 2022 04:13:28 +0000 (12:13 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 4 Oct 2022 17:18:08 +0000 (19:18 +0200)
commitaa87052dd965a6094355fcc13d5abc3f5bebfbe4
tree7e39eb55593ab7a5d55884b9b09ec7817d6a97b2
parentbd04b9192e1ff6859d6b3906e91cfd5c9b0ad55b
ceph: fix incorrectly showing the .snap size for stat

We should set the 'stat->size' to the real number of snapshots for
snapdirs.

Link: https://tracker.ceph.com/issues/57342
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/inode.c