projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f1833c
)
Revert "bcachefs: statfs bfree and bavail should be the same"
author
Kent Overstreet
<kent.overstreet@linux.dev>
Mon, 11 Sep 2023 03:35:02 +0000
(23:35 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:08 +0000
(17:09 -0400)
This reverts commit
664f9847bec525d396d62d2db094ca9020289ae0
.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/fs.c
b/fs/bcachefs/fs.c
index 1b0d63219c3b4284ce12e308d8908b04ed3d3063..71e738b9896725dd4132bdd89b95488fa62570af 100644
(file)
--- a/
fs/bcachefs/fs.c
+++ b/
fs/bcachefs/fs.c
@@
-1277,8
+1277,8
@@
static int bch2_statfs(struct dentry *dentry, struct kstatfs *buf)
buf->f_type = BCACHEFS_STATFS_MAGIC;
buf->f_bsize = sb->s_blocksize;
buf->f_blocks = usage.capacity >> shift;
- buf->f_bfree =
avail_factor(usage.free)
>> shift;
- buf->f_bavail =
buf->f_bfree
;
+ buf->f_bfree =
usage.free
>> shift;
+ buf->f_bavail =
avail_factor(usage.free) >> shift
;
buf->f_files = usage.nr_inodes + avail_inodes;
buf->f_ffree = avail_inodes;