bcachefs: Wrap write path in memalloc_nofs_save()
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 20 Jul 2020 17:00:15 +0000 (13:00 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:42 +0000 (17:08 -0400)
commite8306e3b4ca2d6cb325136afe5631247466ad176
treebf33fc62b48fd990d949dca936b775d460cf2ebb
parentf621e1521c3ff5ea295a97d7d71cdbe84f496467
bcachefs: Wrap write path in memalloc_nofs_save()

This fixes a lockdep splat where we're allocating memory with vmalloc in
the compression bounce path, which doesn't always obey GFP_NOFS.

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