diff options
author | Carlos Maiolino <cmaiolino@redhat.com> | 2020-07-22 18:23:10 +0200 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2020-07-29 05:24:14 +0200 |
commit | 32a2b11f467642ea700bc0b01f4693e52ec0fabd (patch) | |
tree | e721ccd78d206f653b94fe8ad6dbe62b44af85e2 /fs/xfs/xfs_dquot.c | |
parent | xfs: Remove kmem_zone_alloc() usage (diff) | |
download | linux-32a2b11f467642ea700bc0b01f4693e52ec0fabd.tar.xz linux-32a2b11f467642ea700bc0b01f4693e52ec0fabd.zip |
xfs: Remove kmem_zone_zalloc() usage
Use kmem_cache_zalloc() directly.
With the exception of xlog_ticket_alloc() which will be dealt on the
next patch for readability.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_dquot.c')
-rw-r--r-- | fs/xfs/xfs_dquot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_dquot.c b/fs/xfs/xfs_dquot.c index 799b986975e8..04dc2be19c3a 100644 --- a/fs/xfs/xfs_dquot.c +++ b/fs/xfs/xfs_dquot.c @@ -428,7 +428,7 @@ xfs_dquot_alloc( { struct xfs_dquot *dqp; - dqp = kmem_zone_zalloc(xfs_qm_dqzone, 0); + dqp = kmem_cache_zalloc(xfs_qm_dqzone, GFP_KERNEL | __GFP_NOFAIL); dqp->q_type = type; dqp->q_id = id; |