summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/move.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2022-10-28 23:57:01 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:04 -0400
commitaf171183194f73cca9a2f44ba13907ecc9c761a9 (patch)
treed7d2d64bfa424ad5142801d46bf231794a10339d /fs/bcachefs/move.h
parent7e94eeffe0e79a54e525ad05302eb454fb96affd (diff)
downloadlinux-af171183194f73cca9a2f44ba13907ecc9c761a9.tar.gz
linux-af171183194f73cca9a2f44ba13907ecc9c761a9.tar.bz2
linux-af171183194f73cca9a2f44ba13907ecc9c761a9.zip
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>
Diffstat (limited to 'fs/bcachefs/move.h')
-rw-r--r--fs/bcachefs/move.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/move.h b/fs/bcachefs/move.h
index 5076153689d1..99d6acb10880 100644
--- a/fs/bcachefs/move.h
+++ b/fs/bcachefs/move.h
@@ -41,6 +41,7 @@ struct migrate_write {
struct bch_write_op op;
};
+int bch2_migrate_index_update(struct bch_write_op *);
void bch2_migrate_read_done(struct migrate_write *, struct bch_read_bio *);
int bch2_migrate_write_init(struct bch_fs *, struct migrate_write *,
struct write_point_specifier,