diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-07-24 23:32:20 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-08-01 15:33:50 -0400 |
commit | 8f70bd45d2f9bfe416d606b68cde9ca49dac5d49 (patch) | |
tree | 51549678593c056dbb6170658389166cf3aecd99 /fs/bcachefs/sysfs.c | |
parent | 14b8a2dff574ac276acd5921dce36c011f838203 (diff) |
wipdisk-usage
Diffstat (limited to 'fs/bcachefs/sysfs.c')
-rw-r--r-- | fs/bcachefs/sysfs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/bcachefs/sysfs.c b/fs/bcachefs/sysfs.c index b353d7cdb6cd..6ebaf1136aa7 100644 --- a/fs/bcachefs/sysfs.c +++ b/fs/bcachefs/sysfs.c @@ -767,6 +767,10 @@ static ssize_t show_dev_alloc_debug(struct bch_dev *ca, char *buf) struct bch_fs *c = ca->fs; struct bch_dev_usage stats = bch2_dev_usage_read(c, ca); + percpu_down_write(&c->usage_lock); + bch2_dev_usage_verify_full(ca); + percpu_up_write(&c->usage_lock); + return scnprintf(buf, PAGE_SIZE, "free_inc: %zu/%zu\n" "free[RESERVE_BTREE]: %zu/%zu\n" |