]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/btrfs/scrub.c
btrfs: scrub: use GFP_KERNEL on the submission path
authorDavid Sterba <dsterba@suse.com>
Thu, 11 Feb 2016 09:49:42 +0000 (10:49 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 11 Feb 2016 14:19:39 +0000 (15:19 +0100)
commit58c4e173847af8e63537e11be6c1c3fd4b6153fe
treebec9b814ff4a4e6d7d3bba91bcde1e2795841867
parented0244faf59e33ff915b83acd15c903b81fd357b
btrfs: scrub: use GFP_KERNEL on the submission path

Scrub is not on the critical writeback path we don't need to use
GFP_NOFS for all allocations. The failures are handled and stats passed
back to userspace.

Let's use GFP_KERNEL on the paths where everything is ok, ie. setup the
global structures and the IO submission paths.

Functions that do the repair and fixups still use GFP_NOFS as we might
want to skip any other filesystem activity if we encounter an error.
This could turn out to be unnecessary, but requires more review compared
to the easy cases in this patch.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/dev-replace.c
fs/btrfs/scrub.c