xfs: Remove kmem_zalloc_large()
This patch aims to replace kmem_zalloc_large() with global kernel memory API. So, all its callers are now using kvzalloc() directly, so kmalloc() fallsback to vmalloc() automatically. Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:

committed by
Darrick J. Wong

parent
29887a2271
commit
8ca79df85b
@@ -192,7 +192,7 @@ __xfs_set_acl(struct inode *inode, struct posix_acl *acl, int type)
|
||||
|
||||
if (acl) {
|
||||
args.valuelen = XFS_ACL_SIZE(acl->a_count);
|
||||
args.value = kmem_zalloc_large(args.valuelen, 0);
|
||||
args.value = kvzalloc(args.valuelen, GFP_KERNEL);
|
||||
if (!args.value)
|
||||
return -ENOMEM;
|
||||
xfs_acl_to_disk(args.value, acl);
|
||||
|
Reference in New Issue
Block a user