bcachefs: Kill bch_write_op.index_update_fn
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 29 Oct 2022 03:57:01 +0000 (23:57 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:04 +0000 (17:09 -0400)
commitaf171183194f73cca9a2f44ba13907ecc9c761a9
treed7d2d64bfa424ad5142801d46bf231794a10339d
parent7e94eeffe0e79a54e525ad05302eb454fb96affd
bcachefs: Kill bch_write_op.index_update_fn

This deletes bch_write_op.index_update_fn: indirect function calls have
gotten considerably more expensive post spectre/meltdown, and we only
have two different index_update_fns - this patch adds a flag to specify
which one to use (normal vs. data move path).

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/io.c
fs/bcachefs/io.h
fs/bcachefs/io_types.h
fs/bcachefs/move.c
fs/bcachefs/move.h