bcachefs: Fix a bug with spinning on the journal
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 15 May 2019 13:49:46 +0000 (09:49 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:22 +0000 (17:08 -0400)
commit87c3beb4a589312f2c150129309a48b5518385e7
tree63791f25f560df5973e6bf20f11666a518233573
parent58fbf80834c9fc624a269047a07e94a188350f20
bcachefs: Fix a bug with spinning on the journal

Transactional triggers meant that when we failed to get a journal
reservation, then bailed out into the error path to block on a journal
reservation, the second blocking call into the journal code was asking
for less space, which is not what we want.

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