bcachefs: Fix a null ptr deref in fsck check_extents()
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 17 Apr 2023 01:49:12 +0000 (21:49 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:00 +0000 (17:10 -0400)
commite3dc75eb551599c356a9a3f8c00ae6396164457d
tree91b9559d0eafaa0860752262c53b8c198d890f62
parent615fccada50247abbc61c6c0a0d9c717b3fb6290
bcachefs: Fix a null ptr deref in fsck check_extents()

It turns out, in rare situations we need to be passing in a disk
reservation, which will be used internally by the transaction commit
path when needed. Pass one in...

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