]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bcachefs: statfs resports incorrect avail blocks
authorDan Robertson <dan@dlrobertson.com>
Wed, 19 May 2021 00:36:20 +0000 (20:36 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:03 +0000 (17:09 -0400)
commited34341189478344eb54588ce73f190b86da4d5e
tree15444c5676406966c91ac2a60375edc4e43b678c
parentc21d5377791d94fca0d990eee82111572412640c
bcachefs: statfs resports incorrect avail blocks

The current implementation of bch_statfs does not scale the number of
available blocks provided in f_bavail by the reserve factor. This causes
an allocation of a file of this size to fail.

Signed-off-by: Dan Robertson <dan@dlrobertson.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/buckets.c
fs/bcachefs/buckets.h
fs/bcachefs/fs.c