Skip to content

Commit 704ead2

Browse files
author
Matthew Wilcox (Oracle)
committed
fs: Remove last vestiges of releasepage
All users are now converted to release_folio Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Jeff Layton <jlayton@kernel.org>
1 parent bcaabc5 commit 704ead2

3 files changed

Lines changed: 1 addition & 4 deletions

File tree

include/linux/fs.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,6 @@ struct address_space_operations {
356356
sector_t (*bmap)(struct address_space *, sector_t);
357357
void (*invalidate_folio) (struct folio *, size_t offset, size_t len);
358358
bool (*release_folio)(struct folio *, gfp_t);
359-
int (*releasepage) (struct page *, gfp_t);
360359
void (*freepage)(struct page *);
361360
ssize_t (*direct_IO)(struct kiocb *, struct iov_iter *iter);
362361
/*

include/linux/page-flags.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ PAGEFLAG(SwapBacked, swapbacked, PF_NO_TAIL)
516516
/*
517517
* Private page markings that may be used by the filesystem that owns the page
518518
* for its own purposes.
519-
* - PG_private and PG_private_2 cause releasepage() and co to be invoked
519+
* - PG_private and PG_private_2 cause release_folio() and co to be invoked
520520
*/
521521
PAGEFLAG(Private, private, PF_ANY)
522522
PAGEFLAG(Private2, private_2, PF_ANY) TESTSCFLAG(Private2, private_2, PF_ANY)

mm/filemap.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3957,8 +3957,6 @@ bool filemap_release_folio(struct folio *folio, gfp_t gfp)
39573957

39583958
if (mapping && mapping->a_ops->release_folio)
39593959
return mapping->a_ops->release_folio(folio, gfp);
3960-
if (mapping && mapping->a_ops->releasepage)
3961-
return mapping->a_ops->releasepage(&folio->page, gfp);
39623960
return try_to_free_buffers(&folio->page);
39633961
}
39643962
EXPORT_SYMBOL(filemap_release_folio);

0 commit comments

Comments
 (0)