bcachefs: Better inlining in bch2_subvolume_get_snapshot()
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 23 Nov 2022 23:22:59 +0000 (18:22 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:46 +0000 (17:09 -0400)
commit98638ffa1d914e780a527c0bd92323f0b7307f09
treefe3de1843d0c63f1f6bb1c5268c486ae82563c3c
parent0aba9eba76442d6887dc98924bb8c0396a79c984
bcachefs: Better inlining in bch2_subvolume_get_snapshot()

This provides an inlined version of bch2_subvolume_get() and uses it in
bch2_subvolume_get_snapshot(), since this is the version that's used all
over the place and in fast paths (e.g. IO paths).

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