@@ -455,16 +455,6 @@ static void clean_buffers(struct page *page, unsigned first_unmapped)
try_to_free_buffers(page_folio(page));
}
-/*
- * For situations where we want to clean all buffers attached to a page.
- * We don't need to calculate how many buffers are attached to the page,
- * we just need to specify a number larger than the maximum number of buffers.
- */
-void clean_page_buffers(struct page *page)
-{
- clean_buffers(page, ~0U);
-}
-
static int __mpage_writepage(struct folio *folio, struct writeback_control *wbc,
void *data)
{
@@ -270,7 +270,6 @@ int generic_write_end(struct file *, struct address_space *,
loff_t, unsigned, unsigned,
struct page *, void *);
void folio_zero_new_buffers(struct folio *folio, size_t from, size_t to);
-void clean_page_buffers(struct page *page);
int cont_write_begin(struct file *, struct address_space *, loff_t,
unsigned, struct page **, void **,
get_block_t *, loff_t *);
This function has been unused since the removal of bdev_write_page(). Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> --- fs/mpage.c | 10 ---------- include/linux/buffer_head.h | 1 - 2 files changed, 11 deletions(-)