bcachefs: Inline fast path of check_pos_snapshot_overwritten()
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 26 Sep 2022 22:13:29 +0000 (18:13 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:42 +0000 (17:09 -0400)
commit25b4b3308e3a0dd45677b6eeeea4431ee08a32c1
tree4f82d92f05c79f93f9a5b2a133b1c584d7fecec4
parentc23a9e088259193dc883371cf49c99fed675e951
bcachefs: Inline fast path of check_pos_snapshot_overwritten()

This moves the slowpath of check_pos_snapshot_overwritten() to a
separate function, and inlines the fast path - helping performance on
btrees that don't use snapshot and for users that aren't using
snapshots.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_update_leaf.c