bcachefs: Don't allocate memory while holding journal reservation
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 30 Mar 2020 16:33:30 +0000 (12:33 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:37 +0000 (17:08 -0400)
commita0e491c099a25d06759bf8e6e9bcc6fd7c4229a5
tree7f885556c90c1d8fd5b446be448a2f782cb776b7
parent2c31e6572ec6f3fede0d4bb54f342bafba90fe70
bcachefs: Don't allocate memory while holding journal reservation

This fixes a lockdep splat - allocating memory can call
bch2_clear_page_bits() which takes mark_lock.

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