summaryrefslogtreecommitdiffstats
path: root/fs/xfs/kmem.h
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2024-01-15 23:59:41 +0100
committerChandan Babu R <chandanbabu@kernel.org>2024-02-13 13:37:34 +0100
commitafdc115559c57a48ad697219cec1d16962ad9e30 (patch)
tree900c14c9067038d5fd5d3304dc75619ab4500077 /fs/xfs/kmem.h
parentxfs: convert kmem_alloc() to kmalloc() (diff)
downloadlinux-afdc115559c57a48ad697219cec1d16962ad9e30.tar.xz
linux-afdc115559c57a48ad697219cec1d16962ad9e30.zip
xfs: move kmem_to_page()
Move it to the general xfs linux wrapper header file so we can prepare to remove kmem.h 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.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/xfs/kmem.h b/fs/xfs/kmem.h
index 1343f1a6f99b..48e43f29f2a0 100644
--- a/fs/xfs/kmem.h
+++ b/fs/xfs/kmem.h
@@ -20,15 +20,4 @@ static inline void kmem_free(const void *ptr)
kvfree(ptr);
}
-/*
- * Zone interfaces
- */
-static inline struct page *
-kmem_to_page(void *addr)
-{
- if (is_vmalloc_addr(addr))
- return vmalloc_to_page(addr);
- return virt_to_page(addr);
-}
-
#endif /* __XFS_SUPPORT_KMEM_H__ */