btrfs: disable allocation warnings for compression workspaces
authorDavid Sterba <dsterba@suse.com>
Mon, 22 May 2023 14:51:10 +0000 (16:51 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:34 +0000 (13:59 +0200)
commit8ab546bb30bdf975e5ca6024ec6c4f7d324cb11a
tree2feb33d684a801132b0dc7638fbcb8041864f0c4
parent8680e58761eba8ea3552146ea005be30dfed2948
btrfs: disable allocation warnings for compression workspaces

The workspaces for compression are typically much larger than a page and
for high zstd levels in the range of megabytes. There's a fallback to
vmalloc but this can still fail (see the report).

Some of the workspaces are preallocated at module load time so we have a
safe fallback, otherwise when a new workspace is needed it's allocated
but if this fails then the process waits. Which means the warning is
only causing noise and we can use the GFP flag to disable it.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=217466
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/lzo.c
fs/btrfs/zlib.c
fs/btrfs/zstd.c