]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs/fs.c
Update bcachefs sources to 1a510b00b6 bcachefs: Increase BTREE_TRANS_MEM_MAX
[bcachefs-tools-debian] / libbcachefs / fs.c
index d2133053fbd3cf694a3530e25ebc8578cd02259c..0e5baa8214a41a1efcc78d869e7840b07ed9543f 100644 (file)
@@ -1274,8 +1274,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    = usage.free >> shift;
-       buf->f_bavail   = avail_factor(usage.free) >> shift;
+       buf->f_bfree    = avail_factor(usage.free) >> shift;
+       buf->f_bavail   = buf->f_bfree;
 
        buf->f_files    = usage.nr_inodes + avail_inodes;
        buf->f_ffree    = avail_inodes;