bcachefs: Fix a lockdep splat
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 11 Oct 2020 20:33:49 +0000 (16:33 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:44 +0000 (17:08 -0400)
commit5d0b7f906a7e047768f86539b10df602fcbd44b8
tree7cade10aca852f374913784360518f492f5a4548
parent9ba2eb25f017800c3d00eac2bbc3c99451c3bae2
bcachefs: Fix a lockdep splat

We can't allocate memory with GFP_FS while holding the btree cache lock,
and vfree() can allocate memory.

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