summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_super.c
diff options
context:
space:
mode:
authorIan Kent <raven@themaw.net>2019-11-04 13:58:41 -0800
committerDarrick J. Wong <darrick.wong@oracle.com>2019-11-05 08:28:25 -0800
commit7b77b46a61372ce38867578cab1a4b9850359c31 (patch)
tree67ef56b4e60f425a089ebb587b4cc0a08fa950e1 /fs/xfs/xfs_super.c
parent3d9d60d9addf6c085dd37703f6307841111f8168 (diff)
xfs: use kmem functions for struct xfs_mount
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>
Diffstat (limited to 'fs/xfs/xfs_super.c')
-rw-r--r--fs/xfs/xfs_super.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c
index fb90beeb3184..eb919e74d8eb 100644
--- a/fs/xfs/xfs_super.c
+++ b/fs/xfs/xfs_super.c
@@ -1497,7 +1497,7 @@ xfs_mount_alloc(
{
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;
@@ -1711,7 +1711,7 @@ xfs_fs_fill_super(
out_free_names:
sb->s_fs_info = NULL;
xfs_free_names(mp);
- kfree(mp);
+ kmem_free(mp);
out:
return error;
@@ -1743,7 +1743,7 @@ xfs_fs_put_super(
sb->s_fs_info = NULL;
xfs_free_names(mp);
- kfree(mp);
+ kmem_free(mp);
}
STATIC struct dentry *