diff options
author | David Sterba <dsterba@suse.com> | 2017-06-15 17:16:43 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-06-19 18:26:04 +0200 |
commit | 6165572c1139dd694afb8e382a5f06e7e0fa4ad8 (patch) | |
tree | 8255e73caed390a1bc2a804cb927df635ea515fa /fs/btrfs/volumes.c | |
parent | 6a44517d79a394b7f317d782ed47fd4c4bccf7e8 (diff) | |
download | lwn-6165572c1139dd694afb8e382a5f06e7e0fa4ad8.tar.gz lwn-6165572c1139dd694afb8e382a5f06e7e0fa4ad8.zip |
btrfs: use GFP_KERNEL in btrfs_init_dev_replace_tgtdev
The function is called from ioctl context and we don't hold any locks
that take part in writeback. Right now it's only fs_info::volume_mutex.
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r-- | fs/btrfs/volumes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index c10d75fb2202..8bb1f4e5905a 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -2572,7 +2572,7 @@ int btrfs_init_dev_replace_tgtdev(struct btrfs_fs_info *fs_info, goto error; } - name = rcu_string_strdup(device_path, GFP_NOFS); + name = rcu_string_strdup(device_path, GFP_KERNEL); if (!name) { kfree(device); ret = -ENOMEM; |