mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
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>
This commit is contained in:
committed by
Darrick J. Wong
parent
3d9d60d9ad
commit
7b77b46a61
@@ -1497,7 +1497,7 @@ xfs_mount_alloc(
|
|||||||
{
|
{
|
||||||
struct xfs_mount *mp;
|
struct xfs_mount *mp;
|
||||||
|
|
||||||
mp = kzalloc(sizeof(struct xfs_mount), GFP_KERNEL);
|
mp = kmem_alloc(sizeof(struct xfs_mount), KM_ZERO);
|
||||||
if (!mp)
|
if (!mp)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
@@ -1711,7 +1711,7 @@ xfs_fs_fill_super(
|
|||||||
out_free_names:
|
out_free_names:
|
||||||
sb->s_fs_info = NULL;
|
sb->s_fs_info = NULL;
|
||||||
xfs_free_names(mp);
|
xfs_free_names(mp);
|
||||||
kfree(mp);
|
kmem_free(mp);
|
||||||
out:
|
out:
|
||||||
return error;
|
return error;
|
||||||
|
|
||||||
@@ -1743,7 +1743,7 @@ xfs_fs_put_super(
|
|||||||
|
|
||||||
sb->s_fs_info = NULL;
|
sb->s_fs_info = NULL;
|
||||||
xfs_free_names(mp);
|
xfs_free_names(mp);
|
||||||
kfree(mp);
|
kmem_free(mp);
|
||||||
}
|
}
|
||||||
|
|
||||||
STATIC struct dentry *
|
STATIC struct dentry *
|
||||||
|
|||||||
Reference in New Issue
Block a user