diff options
| author | Dave Chinner <[email protected]> | 2024-01-15 22:59:43 +0000 |
|---|---|---|
| committer | Chandan Babu R <[email protected]> | 2024-02-13 12:37:34 +0000 |
| commit | d4c75a1b40cd036a84d98e2711db9cf30eaaaf5f (patch) | |
| tree | a3555a483b2909866b9dbaf31ba07756f6b9491c /fs/xfs/libxfs/xfs_iext_tree.c | |
| parent | xfs: convert kmem_free() for kvmalloc users to kvfree() (diff) | |
| download | kernel-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/libxfs/xfs_iext_tree.c')
| -rw-r--r-- | fs/xfs/libxfs/xfs_iext_tree.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/libxfs/xfs_iext_tree.c b/fs/xfs/libxfs/xfs_iext_tree.c index 4522f3c7a23f..16f18b08fe4c 100644 --- a/fs/xfs/libxfs/xfs_iext_tree.c +++ b/fs/xfs/libxfs/xfs_iext_tree.c @@ -747,7 +747,7 @@ xfs_iext_remove_node( again: ASSERT(node->ptrs[pos]); ASSERT(node->ptrs[pos] == victim); - kmem_free(victim); + kfree(victim); nr_entries = xfs_iext_node_nr_entries(node, pos) - 1; offset = node->keys[0]; @@ -793,7 +793,7 @@ again: ASSERT(node == ifp->if_data); ifp->if_data = node->ptrs[0]; ifp->if_height--; - kmem_free(node); + kfree(node); } } @@ -867,7 +867,7 @@ xfs_iext_free_last_leaf( struct xfs_ifork *ifp) { ifp->if_height--; - kmem_free(ifp->if_data); + kfree(ifp->if_data); ifp->if_data = NULL; } @@ -1048,7 +1048,7 @@ xfs_iext_destroy_node( } } - kmem_free(node); + kfree(node); } void |
