aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/xfs/kmem.h
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2024-01-16 09:59:43 +1100
committerChandan Babu R <chandanbabu@kernel.org>2024-02-13 18:07:34 +0530
commitd4c75a1b40cd036a84d98e2711db9cf30eaaaf5f (patch)
treea3555a483b2909866b9dbaf31ba07756f6b9491c /fs/xfs/kmem.h
parentxfs: convert kmem_free() for kvmalloc users to kvfree() (diff)
downloadwireguard-linux-d4c75a1b40cd036a84d98e2711db9cf30eaaaf5f.tar.xz
wireguard-linux-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 <dchinner@redhat.com> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
Diffstat (limited to 'fs/xfs/kmem.h')
-rw-r--r--fs/xfs/kmem.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/fs/xfs/kmem.h b/fs/xfs/kmem.h
deleted file mode 100644
index 48e43f29f2a0..000000000000
--- a/fs/xfs/kmem.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Copyright (c) 2000-2005 Silicon Graphics, Inc.
- * All Rights Reserved.
- */
-#ifndef __XFS_SUPPORT_KMEM_H__
-#define __XFS_SUPPORT_KMEM_H__
-
-#include <linux/slab.h>
-#include <linux/sched.h>
-#include <linux/mm.h>
-#include <linux/vmalloc.h>
-
-/*
- * General memory allocation interfaces
- */
-
-static inline void kmem_free(const void *ptr)
-{
- kvfree(ptr);
-}
-
-#endif /* __XFS_SUPPORT_KMEM_H__ */