bcachefs: Fix bch2_journal_pin_set()
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 5 Jan 2023 15:13:37 +0000 (10:13 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:29 +0000 (17:09 -0400)
commit70a9953c424ccba616a3b74368780de13a80dabd
tree2cac6b8aeb91e6c17c4e97f5e3f9e5f66f34971a
parent3e1547116fe70f49c88e1ee400966a1c7b1bec3a
bcachefs: Fix bch2_journal_pin_set()

When bch2_journal_pin_set() is updating an existing pin, we shouldn't
call bch2_journal_reclaim_fast() after dropping the old pin and before
dropping the new pin - that could reclaim the entry we're trying to pin.

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