bcachefs: Check for errors in bch2_journal_reclaim()
authorKent Overstreet <kent.overstreet@gmail.com>
Thu, 3 Dec 2020 18:23:58 +0000 (13:23 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:49 +0000 (17:08 -0400)
commitafa7cb0c36bd511362bcb03c6db8af74186176bf
tree5cdc1e955ffbfdab2e4b3a573988d1507b10b433
parent33c74e4119a91c3ae87fc207777e34fdbb613c66
bcachefs: Check for errors in bch2_journal_reclaim()

If the journal is halted, journal reclaim won't necessarily be able to
make any forward progress, and won't accomplish anything anyways - we
should bail out so that we don't get stuck looping in reclaim when the
caches are too dirty and we should be shutting down.

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