bcachefs: Fix bch2_btree_update_start() to return -BCH_ERR_journal_reclaim_would_deadlock
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 27 Aug 2022 16:37:05 +0000 (12:37 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:39 +0000 (17:09 -0400)
commitd97e6aaed60a9c2c727cce2979ca311fe232163f
treec408db16556e241c681e8f816c14e397903961b2
parent8a9c1b1cb0edacdf4ac9c378c4ec4fc376fc8bac
bcachefs: Fix bch2_btree_update_start() to return -BCH_ERR_journal_reclaim_would_deadlock

On failure to get a journal pre-reservation because we're called from
journal reclaim we're not supposed to return a transaction restart error
- this fixes a livelock.

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