* [PATCH] xfs: remove kmem_to_page()
@ 2026-08-07 10:58 Tal Zussman
2026-08-10 15:39 ` Christoph Hellwig
0 siblings, 1 reply; 2+ messages in thread
From: Tal Zussman @ 2026-08-07 10:58 UTC (permalink / raw)
To: Carlos Maiolino; +Cc: linux-xfs, linux-kernel, Tal Zussman
kmem_to_page() has been unused since commit 5ced480d4886 ("xfs: simplify
building the bio in xlog_write_iclog"), so remove it. This also removes
the last instance of 'struct page' in fs/xfs/.
Signed-off-by: Tal Zussman <tz2294@columbia.edu>
---
fs/xfs/xfs_platform.h | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/fs/xfs/xfs_platform.h b/fs/xfs/xfs_platform.h
index 59a33c60e0ca..5d542e95fe44 100644
--- a/fs/xfs/xfs_platform.h
+++ b/fs/xfs/xfs_platform.h
@@ -289,15 +289,4 @@ int xfs_rw_bdev(struct block_device *bdev, sector_t sector, unsigned int count,
# define PTR_FMT "%p"
#endif
-/*
- * Helper for IO routines to grab backing pages from allocated kernel memory.
- */
-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_PLATFORM_H */
---
base-commit: 3708f6188677fa7d3eb88ac80b03a56ef415d9bc
change-id: 20260807-kmem_to_page-removal-d1ec0cca9c00
Best regards,
--
Tal Zussman <tz2294@columbia.edu>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] xfs: remove kmem_to_page()
2026-08-07 10:58 [PATCH] xfs: remove kmem_to_page() Tal Zussman
@ 2026-08-10 15:39 ` Christoph Hellwig
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2026-08-10 15:39 UTC (permalink / raw)
To: Tal Zussman; +Cc: Carlos Maiolino, linux-xfs, linux-kernel
On Fri, Aug 07, 2026 at 06:58:51AM -0400, Tal Zussman wrote:
> kmem_to_page() has been unused since commit 5ced480d4886 ("xfs: simplify
> building the bio in xlog_write_iclog"), so remove it. This also removes
> the last instance of 'struct page' in fs/xfs/.
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-10 15:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-07 10:58 [PATCH] xfs: remove kmem_to_page() Tal Zussman
2026-08-10 15:39 ` Christoph Hellwig
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.