orangefs: fix orangefs df output.
authorMike Marshall <hubcap@omnibond.com>
Tue, 18 May 2021 12:09:13 +0000 (08:09 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:17:52 +0000 (16:17 +0200)
[ Upstream commit 0fdec1b3c9fbb5e856a40db5993c9eaf91c74a83 ]

Orangefs df output is whacky. Walt Ligon suggested this might fix it.
It seems way more in line with reality now...

Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/orangefs/super.c

index 1997ce49ab46c17f118eae221ee7017907dd4636..e5f7df28793ddeedd3045eceb99deec2a8e098d4 100644 (file)
@@ -197,7 +197,7 @@ static int orangefs_statfs(struct dentry *dentry, struct kstatfs *buf)
        buf->f_bavail = (sector_t) new_op->downcall.resp.statfs.blocks_avail;
        buf->f_files = (sector_t) new_op->downcall.resp.statfs.files_total;
        buf->f_ffree = (sector_t) new_op->downcall.resp.statfs.files_avail;
-       buf->f_frsize = sb->s_blocksize;
+       buf->f_frsize = 0;
 
 out_op_release:
        op_release(new_op);