diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-06-27 23:32:48 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:10:05 +0200 |
commit | f33c58fc46a9c5bd6cbf90edb6ce17fa3fd912d5 (patch) | |
tree | d8a245eb7cf6e7ef9d7a6fc0a02cf06ba917dc2e /fs/bcachefs/btree_key_cache.c | |
parent | bcachefs: Fix a null ptr deref in bch2_fs_alloc() error path (diff) | |
download | linux-f33c58fc46a9c5bd6cbf90edb6ce17fa3fd912d5.tar.xz linux-f33c58fc46a9c5bd6cbf90edb6ce17fa3fd912d5.zip |
bcachefs: Kill BTREE_INSERT_USE_RESERVE
Now that we have journal watermarks and alloc watermarks unified,
BTREE_INSERT_USE_RESERVE is redundant and can be deleted.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_key_cache.c')
-rw-r--r-- | fs/bcachefs/btree_key_cache.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_key_cache.c b/fs/bcachefs/btree_key_cache.c index 40847ec1e56e..1d702efaf074 100644 --- a/fs/bcachefs/btree_key_cache.c +++ b/fs/bcachefs/btree_key_cache.c @@ -650,7 +650,6 @@ static int btree_key_cache_flush_pos(struct btree_trans *trans, bch2_trans_commit(trans, NULL, NULL, BTREE_INSERT_NOCHECK_RW| BTREE_INSERT_NOFAIL| - BTREE_INSERT_USE_RESERVE| (ck->journal.seq == journal_last_seq(j) ? BCH_WATERMARK_reclaim : 0)| |