diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-11-27 08:23:22 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:13 -0400 |
commit | 5663a4152138fdf23a300934128d77a1bf784237 (patch) | |
tree | 6dd75bda248deb3aab62b974a7f9dc077f342e7d /fs/bcachefs/chardev.c | |
parent | 73e6ab95640a7d370b7af481e8ed44be7c76b898 (diff) | |
download | lwn-5663a4152138fdf23a300934128d77a1bf784237.tar.gz lwn-5663a4152138fdf23a300934128d77a1bf784237.zip |
bcachefs: refactor bch_fs_usage
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/chardev.c')
-rw-r--r-- | fs/bcachefs/chardev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/chardev.c b/fs/bcachefs/chardev.c index d24cff52ba96..c11f8f4d24cf 100644 --- a/fs/bcachefs/chardev.c +++ b/fs/bcachefs/chardev.c @@ -306,7 +306,7 @@ static ssize_t bch2_data_job_read(struct file *file, char __user *buf, .p.btree_id = ctx->stats.iter.btree_id, .p.pos = ctx->stats.iter.pos, .p.sectors_done = atomic64_read(&ctx->stats.sectors_seen), - .p.sectors_total = bch2_fs_sectors_used(c, bch2_fs_usage_read(c)), + .p.sectors_total = bch2_fs_usage_read_short(c).used, }; if (len < sizeof(e)) |