aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_rtalloc.c
diff options
context:
space:
mode:
authorDave Chinner <[email protected]>2024-01-15 22:59:43 +0000
committerChandan Babu R <[email protected]>2024-02-13 12:37:34 +0000
commitd4c75a1b40cd036a84d98e2711db9cf30eaaaf5f (patch)
treea3555a483b2909866b9dbaf31ba07756f6b9491c /fs/xfs/xfs_rtalloc.c
parentxfs: convert kmem_free() for kvmalloc users to kvfree() (diff)
downloadkernel-d4c75a1b40cd036a84d98e2711db9cf30eaaaf5f.tar.gz
kernel-d4c75a1b40cd036a84d98e2711db9cf30eaaaf5f.zip
xfs: convert remaining kmem_free() to kfree()
The remaining callers of kmem_free() are freeing heap memory, so we can convert them directly to kfree() and get rid of kmem_free() altogether. This conversion was done with: $ for f in `git grep -l kmem_free fs/xfs`; do > sed -i s/kmem_free/kfree/ $f > done $ Signed-off-by: Dave Chinner <[email protected]> Reviewed-by: "Darrick J. Wong" <[email protected]> Signed-off-by: Chandan Babu R <[email protected]>
Diffstat (limited to 'fs/xfs/xfs_rtalloc.c')
-rw-r--r--fs/xfs/xfs_rtalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_rtalloc.c b/fs/xfs/xfs_rtalloc.c
index 57ed9baaf156..2f85567f3d75 100644
--- a/fs/xfs/xfs_rtalloc.c
+++ b/fs/xfs/xfs_rtalloc.c
@@ -1050,7 +1050,7 @@ out_free:
/*
* Free the fake mp structure.
*/
- kmem_free(nmp);
+ kfree(nmp);
/*
* If we had to allocate a new rsum_cache, we either need to free the