diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-09-05 20:37:50 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:08:26 +0300 |
commit | 4430ea7046fcb2112c5888705a6a674d53d9db03 (patch) | |
tree | c9bf7096f47c8e14f3c28e579652be29e0554966 /fs/bcachefs/buckets.c | |
parent | 78854fca28e4e789c99a812acda2ac04c20d2dac (diff) | |
download | linux-4430ea7046fcb2112c5888705a6a674d53d9db03.tar.xz |
bcachefs: Kill BTREE_INSERT_NOMARK_INSERT
Was dead code
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/buckets.c')
-rw-r--r-- | fs/bcachefs/buckets.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/bcachefs/buckets.c b/fs/bcachefs/buckets.c index 774201a1c0c5..e432a4507081 100644 --- a/fs/bcachefs/buckets.c +++ b/fs/bcachefs/buckets.c @@ -1265,11 +1265,10 @@ int bch2_mark_update(struct btree_trans *trans, if (!btree_node_type_needs_gc(iter->btree_id)) return 0; - if (!(trans->flags & BTREE_INSERT_NOMARK_INSERT)) - bch2_mark_key_locked(c, bkey_i_to_s_c(insert->k), - 0, insert->k->k.size, - fs_usage, trans->journal_res.seq, - BCH_BUCKET_MARK_INSERT|flags); + bch2_mark_key_locked(c, bkey_i_to_s_c(insert->k), + 0, insert->k->k.size, + fs_usage, trans->journal_res.seq, + BCH_BUCKET_MARK_INSERT|flags); if (unlikely(trans->flags & BTREE_INSERT_NOMARK_OVERWRITES)) return 0; |