]> www.infradead.org Git - nvme.git/commit
bcachefs: backpointer_get_key: check for null from peek_slot()
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 2 Apr 2025 16:54:25 +0000 (12:54 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 3 Apr 2025 16:11:43 +0000 (12:11 -0400)
commit2581f89ac8d7174fda975523ae6c2bdc8ad62144
treec4abd83fa74e9d6e216386524b251193ad434418
parent39ebd74864f5c4f7d44f1fe026c71a270631186b
bcachefs: backpointer_get_key: check for null from peek_slot()

peek_slot() doesn't normally return bkey_s_c_null - except when we ask
for a key at a btree level that doesn't exist, which can happen here.

We might want to revisit this, but we'll have to look over all the
places where we use peek_slot() on interior nodes.

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