bcachefs: BTREE_TRIGGER_INSERT now only means insert
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 29 Oct 2021 22:58:50 +0000 (18:58 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:15 +0000 (17:09 -0400)
commit2debb1b875c140c7a5490d5eb9e88b3c51f375e2
treef528c328e6687af143a9cabdace46e10ae281232
parent904823de497fa6637db8bc7c3b017f121b72bdf3
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>
fs/bcachefs/btree_gc.c
fs/bcachefs/buckets.c
fs/bcachefs/ec.c