diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-06-24 19:30:10 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:04 -0400 |
commit | e53a961c6b1ced2ac1ab69fdf56706cf21e6f7a6 (patch) | |
tree | d819ad359a6011532bcdec8d8820797d829d3d04 /fs/bcachefs/movinggc.c | |
parent | e9d017234ff96ed9820dc7cd3a4c940af44330bf (diff) | |
download | lwn-e53a961c6b1ced2ac1ab69fdf56706cf21e6f7a6.tar.gz lwn-e53a961c6b1ced2ac1ab69fdf56706cf21e6f7a6.zip |
bcachefs: Rename enum alloc_reserve -> bch_watermark
This is prep work for consolidating with JOURNAL_WATERMARK.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/movinggc.c')
-rw-r--r-- | fs/bcachefs/movinggc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/movinggc.c b/fs/bcachefs/movinggc.c index 6750767276f2..7ef78cccc65c 100644 --- a/fs/bcachefs/movinggc.c +++ b/fs/bcachefs/movinggc.c @@ -271,7 +271,7 @@ unsigned long bch2_copygc_wait_amount(struct bch_fs *c) for_each_rw_member(ca, c, dev_idx) { struct bch_dev_usage usage = bch2_dev_usage_read(ca); - fragmented_allowed = ((__dev_buckets_available(ca, usage, RESERVE_stripe) * + fragmented_allowed = ((__dev_buckets_available(ca, usage, BCH_WATERMARK_stripe) * ca->mi.bucket_size) >> 1); fragmented = 0; |