diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-07-11 22:00:46 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-07-15 01:00:11 +0200 |
commit | 26a170aa6182209723f7654eaeddcab7b58a9d83 (patch) | |
tree | 00c929bdb81afbe4181884275843b0a188b36274 /fs/bcachefs/alloc_background.c | |
parent | bcachefs: uninline fallocate functions (diff) | |
download | linux-26a170aa6182209723f7654eaeddcab7b58a9d83.tar.xz linux-26a170aa6182209723f7654eaeddcab7b58a9d83.zip |
bcachefs: add capacity, reserved to fs_alloc_debug_to_text()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/alloc_background.c')
-rw-r--r-- | fs/bcachefs/alloc_background.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/alloc_background.c b/fs/bcachefs/alloc_background.c index 658f11aebda1..9c12ce5f4da3 100644 --- a/fs/bcachefs/alloc_background.c +++ b/fs/bcachefs/alloc_background.c @@ -2336,6 +2336,7 @@ void bch2_recalc_capacity(struct bch_fs *c) reserved_sectors = min(reserved_sectors, capacity); + c->reserved = reserved_sectors; c->capacity = capacity - reserved_sectors; c->bucket_size_max = bucket_size_max; |