The remount function uses the kmem functions for allocating and freeing
struct xfs_mount, for consistency use the kmem functions everwhere for
struct xfs_mount.
Signed-off-by: Ian Kent <raven@themaw.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
{
struct xfs_mount *mp;
- mp = kzalloc(sizeof(struct xfs_mount), GFP_KERNEL);
+ mp = kmem_alloc(sizeof(struct xfs_mount), KM_ZERO);
if (!mp)
return NULL;
out_free_names:
sb->s_fs_info = NULL;
xfs_free_names(mp);
- kfree(mp);
+ kmem_free(mp);
out:
return error;
sb->s_fs_info = NULL;
xfs_free_names(mp);
- kfree(mp);
+ kmem_free(mp);
}
STATIC struct dentry *