diff options
author | David Sterba <dsterba@suse.com> | 2015-12-03 12:49:48 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2015-12-03 15:03:44 +0100 |
commit | 39a27ec1004e886f1d949bdb8f2616896d02c5c2 (patch) | |
tree | 1e4c4389f0857ca5bd38278cde2f68752269c8d9 /fs/btrfs/xattr.c | |
parent | 61dd5ae65be6dfaeadb0e841ea6639351f0e04ce (diff) | |
download | linux-stable-39a27ec1004e886f1d949bdb8f2616896d02c5c2.tar.gz linux-stable-39a27ec1004e886f1d949bdb8f2616896d02c5c2.tar.bz2 linux-stable-39a27ec1004e886f1d949bdb8f2616896d02c5c2.zip |
btrfs: use GFP_KERNEL for xattr and acl allocations
We don't have to use GFP_NOFS in context of ACL or XATTR actions, not
possible to loop through the allocator and it's safe to fail with
ENOMEM.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/xattr.c')
-rw-r--r-- | fs/btrfs/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/xattr.c b/fs/btrfs/xattr.c index 1fcd7b6e7564..24e8ff722730 100644 --- a/fs/btrfs/xattr.c +++ b/fs/btrfs/xattr.c @@ -494,7 +494,7 @@ static int btrfs_initxattrs(struct inode *inode, for (xattr = xattr_array; xattr->name != NULL; xattr++) { name = kmalloc(XATTR_SECURITY_PREFIX_LEN + - strlen(xattr->name) + 1, GFP_NOFS); + strlen(xattr->name) + 1, GFP_KERNEL); if (!name) { err = -ENOMEM; break; |