diff mbox series

[5/6] pagemap: Remove readahead_page_batch()

Message ID 20250303175317.3277891-6-willy@infradead.org (mailing list archive)
State New
Headers show
Series ITER_XARRAY cleanups and consequences | expand

Commit Message

Matthew Wilcox March 3, 2025, 5:53 p.m. UTC
This function has no more callers; delete it.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
---
 include/linux/pagemap.h | 14 --------------
 1 file changed, 14 deletions(-)
diff mbox series

Patch

diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h
index f4b875b561e5..4a1c9dc92d82 100644
--- a/include/linux/pagemap.h
+++ b/include/linux/pagemap.h
@@ -1472,20 +1472,6 @@  static inline unsigned int __readahead_batch(struct readahead_control *rac,
 	return i;
 }
 
-/**
- * readahead_page_batch - Get a batch of pages to read.
- * @rac: The current readahead request.
- * @array: An array of pointers to struct page.
- *
- * Context: The pages are locked and have an elevated refcount.  The caller
- * should decreases the refcount once the page has been submitted for I/O
- * and unlock the page once all I/O to that page has completed.
- * Return: The number of pages placed in the array.  0 indicates the request
- * is complete.
- */
-#define readahead_page_batch(rac, array)				\
-	__readahead_batch(rac, array, ARRAY_SIZE(array))
-
 /**
  * readahead_pos - The byte offset into the file of this readahead request.
  * @rac: The readahead request.