diff options
author | Greg Farnum <gregory.farnum@dreamhost.com> | 2011-07-26 11:26:54 -0700 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2011-07-26 11:27:06 -0700 |
commit | 8f04d42276048b3baff5a5d8fa769f433c62b63e (patch) | |
tree | dd9cdb99079d193ceab74f9b2f4b11d4b2fb7508 /fs/ceph | |
parent | e77dc3e9c061e50c67e2e1a604d0a370f40db298 (diff) | |
download | kernel_goldelico_gta04-8f04d42276048b3baff5a5d8fa769f433c62b63e.zip kernel_goldelico_gta04-8f04d42276048b3baff5a5d8fa769f433c62b63e.tar.gz kernel_goldelico_gta04-8f04d42276048b3baff5a5d8fa769f433c62b63e.tar.bz2 |
ceph: report f_bfree based on kb_avail rather than diffing.
Reviewed-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r-- | fs/ceph/super.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ceph/super.c b/fs/ceph/super.c index f2f77fd..d4757c9 100644 --- a/fs/ceph/super.c +++ b/fs/ceph/super.c @@ -73,8 +73,7 @@ static int ceph_statfs(struct dentry *dentry, struct kstatfs *buf) */ buf->f_bsize = 1 << CEPH_BLOCK_SHIFT; buf->f_blocks = le64_to_cpu(st.kb) >> (CEPH_BLOCK_SHIFT-10); - buf->f_bfree = (le64_to_cpu(st.kb) - le64_to_cpu(st.kb_used)) >> - (CEPH_BLOCK_SHIFT-10); + buf->f_bfree = le64_to_cpu(st.kb_avail) >> (CEPH_BLOCK_SHIFT-10); buf->f_bavail = le64_to_cpu(st.kb_avail) >> (CEPH_BLOCK_SHIFT-10); buf->f_files = le64_to_cpu(st.num_objects); |