diff options
author | David Sterba <dsterba@suse.com> | 2016-02-11 12:49:42 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-02-11 17:19:39 +0300 |
commit | 58c4e173847af8e63537e11be6c1c3fd4b6153fe (patch) | |
tree | bec9b814ff4a4e6d7d3bba91bcde1e2795841867 /fs/btrfs/dev-replace.c | |
parent | ed0244faf59e33ff915b83acd15c903b81fd357b (diff) | |
download | linux-58c4e173847af8e63537e11be6c1c3fd4b6153fe.tar.xz |
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>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
-rw-r--r-- | fs/btrfs/dev-replace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c index cbb7dbfb3fff..01ce5fcecc5c 100644 --- a/fs/btrfs/dev-replace.c +++ b/fs/btrfs/dev-replace.c @@ -802,7 +802,7 @@ static int btrfs_dev_replace_kthread(void *data) struct btrfs_ioctl_dev_replace_args *status_args; u64 progress; - status_args = kzalloc(sizeof(*status_args), GFP_NOFS); + status_args = kzalloc(sizeof(*status_args), GFP_KERNEL); if (status_args) { btrfs_dev_replace_status(fs_info, status_args); progress = status_args->status.progress_1000; |