diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-04-01 19:16:19 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-04-01 21:14:02 -0400 |
commit | ba947ecd39ea0e6a6f6f1101f99611fc30943bcb (patch) | |
tree | 83ef0f67ea72e1aa1b684b539a5058cbe8086732 /fs/bcachefs/btree_update_interior.c | |
parent | b3c7fd35c03c17a950737fb56a06b730a7962d28 (diff) | |
download | linux-stable-ba947ecd39ea0e6a6f6f1101f99611fc30943bcb.tar.gz linux-stable-ba947ecd39ea0e6a6f6f1101f99611fc30943bcb.tar.bz2 linux-stable-ba947ecd39ea0e6a6f6f1101f99611fc30943bcb.zip |
bcachefs: Fix btree node reserve
Sign error when checking the watermark - oops.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_update_interior.c')
-rw-r--r-- | fs/bcachefs/btree_update_interior.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_update_interior.c b/fs/bcachefs/btree_update_interior.c index 983bb27298cc..29aee215384a 100644 --- a/fs/bcachefs/btree_update_interior.c +++ b/fs/bcachefs/btree_update_interior.c @@ -303,7 +303,7 @@ static struct btree *__bch2_btree_node_alloc(struct btree_trans *trans, struct open_buckets obs = { .nr = 0 }; struct bch_devs_list devs_have = (struct bch_devs_list) { 0 }; enum bch_watermark watermark = flags & BCH_WATERMARK_MASK; - unsigned nr_reserve = watermark > BCH_WATERMARK_reclaim + unsigned nr_reserve = watermark < BCH_WATERMARK_reclaim ? BTREE_NODE_RESERVE : 0; int ret; |