bcachefs: Minor bch2_btree_node_get() smatch fixes
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 20 Sep 2023 05:31:00 +0000 (01:31 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:14 +0000 (17:10 -0400)
commit51c801bc6414e88d686fb3229c54d7dda1508778
treee31235df0942ece78385aa569b01d54c05a1d05a
parentd04fdf5c1017b9ebfd45efbcc2c8cd95f7f4e30d
bcachefs: Minor bch2_btree_node_get() smatch fixes

 - it's no longer possible for trans to be NULL
 - also, move "wait for read to complete" to the slowpath,
   __bch2_btree_node_get().

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