History

fs: Remove last vestiges of releasepage

All users are now converted to release_folio

Matthew Wilcox (Oracle) committed 4 years ago

Commit 704ead21 parent bcaabc53 files · +1 −4Browse files

Unified · Split

3 files
  1. include/linux/fs.h +0 −1
  2. include/linux/page-flags.h +1 −1
  3. mm/filemap.c +0 −2
include/linux/fs.h+0−1
@@ -356,7 +356,6 @@ struct address_space_operations { · 355 unmodified lines
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+1−1
@@ -516,7 +516,7 @@ PAGEFLAG(SwapBacked, swapbacked, PF_NO_TAIL) · 515 unmodified lines
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+0−2
@@ -3957,8 +3957,6 @@ bool filemap_release_folio(struct folio *folio, gfp_t gfp) · 3956 unmodified lines
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);