ceph: more accurate statfs
authorDouglas Fuller <dfuller@redhat.com>
Wed, 16 Aug 2017 14:19:27 +0000 (10:19 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 6 Sep 2017 17:56:49 +0000 (19:56 +0200)
commit06d74376c8af32f5b8d777a943aa4dc99165088b
treee3a431e2eaae92a5fc64bc8e55853367efb7cc30
parent92776fd2c230f80be910cf33acd99682345209cd
ceph: more accurate statfs

Improve accuracy of statfs reporting for Ceph filesystems comprising
exactly one data pool. In this case, the Ceph monitor can now report
the space usage for the single data pool instead of the global data
for the entire Ceph cluster. Include support for this message in
mon_client and leverage it in ceph/super.

Signed-off-by: Douglas Fuller <dfuller@redhat.com>
Reviewed-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/super.c
include/linux/ceph/ceph_fs.h
include/linux/ceph/mon_client.h
net/ceph/mon_client.c