summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/darray.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-03-13 00:30:16 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:28 -0400
commit5d93a842c1eb292e2cde9f5025628269d7d386e0 (patch)
tree29dc0801ba4716d40288a0ec26f834b45a050f55 /fs/bcachefs/darray.h
parentbcachefs: Move trigger fns to bkey_ops (diff)
downloadlinux-5d93a842c1eb292e2cde9f5025628269d7d386e0.tar.gz
linux-5d93a842c1eb292e2cde9f5025628269d7d386e0.zip
bcachefs: Fix BTREE_TRIGGER_WANTS_OLD_AND_NEW
BTREE_TRIGGER_WANTS_OLD_AND_NEW didn't work correctly when the old and new key were both alloc keys, but different versions - it required old and new key type to be identical, and this bug is a problem for the new allocator rewrite. This patch fixes it by checking if the old and new key have the same trigger functions - the different versions of alloc (and inode) keys have the same trigger functions. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/darray.h')
0 files changed, 0 insertions, 0 deletions