]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit062576e1e093a44522202f50edcb57c3a7a3c27f
tree7e39eb55593ab7a5d55884b9b09ec7817d6a97b2
parent453a615d887404fa94abc61407ab89e4e7e5bb07
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