mirror of
https://github.com/torvalds/linux.git
synced 2026-09-11 20:13:02 +02:00
xfs: remove kmem_to_page()
kmem_to_page() has been unused since commit 5ced480d48 ("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>
This commit is contained in:
parent
7fc296b379
commit
750a361bfc
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user