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/xfs_linux.h | |
| 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/xfs_linux.h')
| -rw-r--r-- | fs/xfs/xfs_linux.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/xfs/xfs_linux.h b/fs/xfs/xfs_linux.h index 666618b463c9..caccb7f76690 100644 --- a/fs/xfs/xfs_linux.h +++ b/fs/xfs/xfs_linux.h @@ -20,8 +20,6 @@ typedef __u32 xfs_dev_t; typedef __u32 xfs_nlink_t; #include "xfs_types.h" - -#include "kmem.h" #include "mrlock.h" #include <linux/semaphore.h> @@ -30,6 +28,7 @@ typedef __u32 xfs_nlink_t; #include <linux/kernel.h> #include <linux/blkdev.h> #include <linux/slab.h> +#include <linux/vmalloc.h> #include <linux/crc32c.h> #include <linux/module.h> #include <linux/mutex.h> |
