diff options
| author | Tal Zussman <tz2294@columbia.edu> | 2026-08-07 06:58:51 -0400 |
|---|---|---|
| committer | Carlos Maiolino <cem@kernel.org> | 2026-08-21 09:09:54 +0200 |
| commit | 750a361bfc8a8c8178872f2aecb7507a6fbf41a4 (patch) | |
| tree | 4990da3460e36849fbb4e02bced8ca2750c25f64 | |
| parent | 7fc296b379edc0fef83890097af3c9537fbf4364 (diff) | |
| download | linux-stable-750a361bfc8a8c8178872f2aecb7507a6fbf41a4.tar.gz linux-stable-750a361bfc8a8c8178872f2aecb7507a6fbf41a4.zip | |
xfs: remove kmem_to_page()
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>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
| -rw-r--r-- | fs/xfs/xfs_platform.h | 11 |
1 files changed, 0 insertions, 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 */ |
