Skip to content

Commit

Permalink
orangefs: fix orangefs df output.
Browse files Browse the repository at this point in the history
[ Upstream commit 0fdec1b ]

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>
  • Loading branch information
hubcapsc authored and gregkh committed Jul 20, 2021
1 parent 6e43cdc commit 3c586f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/orangefs/super.c
Expand Up @@ -209,7 +209,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);
Expand Down

0 comments on commit 3c586f8

Please sign in to comment.