summaryrefslogtreecommitdiff
path: root/fs/bcachefs/ec.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-10-30 01:58:50 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:09:15 +0300
commit2debb1b875c140c7a5490d5eb9e88b3c51f375e2 (patch)
treef528c328e6687af143a9cabdace46e10ae281232 /fs/bcachefs/ec.c
parent904823de497fa6637db8bc7c3b017f121b72bdf3 (diff)
downloadlinux-2debb1b875c140c7a5490d5eb9e88b3c51f375e2.tar.xz
bcachefs: BTREE_TRIGGER_INSERT now only means insert
This allows triggers to distinguish between a key entering the btree - i.e. being called from the trans commit path - vs. being called on a key that already exists, i.e. by GC. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/ec.c')
-rw-r--r--fs/bcachefs/ec.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/bcachefs/ec.c b/fs/bcachefs/ec.c
index 74dc6c40dc9e..32b17f05a750 100644
--- a/fs/bcachefs/ec.c
+++ b/fs/bcachefs/ec.c
@@ -1642,7 +1642,6 @@ static int bch2_stripes_read_fn(struct btree_trans *trans, struct bkey_s_c k)
if (k.k->type == KEY_TYPE_stripe)
ret = __ec_stripe_mem_alloc(c, k.k->p.offset, GFP_KERNEL) ?:
bch2_mark_key(trans, k,
- BTREE_TRIGGER_INSERT|
BTREE_TRIGGER_NOATOMIC);
return ret;