All users are now converted to release_folio
Unified · Split
| @@ -356,7 +356,6 @@ struct address_space_operations { · 355 unmodified lines | |||
| 356 | sector_t (*bmap)(struct address_space *, sector_t); | 356 | sector_t (*bmap)(struct address_space *, sector_t); |
| 357 | void (*invalidate_folio) (struct folio *, size_t offset, size_t len); | 357 | void (*invalidate_folio) (struct folio *, size_t offset, size_t len); |
| 358 | bool (*release_folio)(struct folio *, gfp_t); | 358 | bool (*release_folio)(struct folio *, gfp_t); |
| 359 | int (*releasepage) (struct page *, gfp_t); | ||
| 360 | void (*freepage)(struct page *); | 359 | void (*freepage)(struct page *); |
| 361 | ssize_t (*direct_IO)(struct kiocb *, struct iov_iter *iter); | 360 | ssize_t (*direct_IO)(struct kiocb *, struct iov_iter *iter); |
| 362 | /* | 361 | /* |
| @@ -516,7 +516,7 @@ PAGEFLAG(SwapBacked, swapbacked, PF_NO_TAIL) · 515 unmodified lines | |||
| 516 | /* | 516 | /* |
| 517 | * Private page markings that may be used by the filesystem that owns the page | 517 | * Private page markings that may be used by the filesystem that owns the page |
| 518 | * for its own purposes. | 518 | * 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 |
| 520 | */ | 520 | */ |
| 521 | PAGEFLAG(Private, private, PF_ANY) | 521 | PAGEFLAG(Private, private, PF_ANY) |
| 522 | PAGEFLAG(Private2, private_2, PF_ANY) TESTSCFLAG(Private2, private_2, PF_ANY) | 522 | PAGEFLAG(Private2, private_2, PF_ANY) TESTSCFLAG(Private2, private_2, PF_ANY) |
| @@ -3957,8 +3957,6 @@ bool filemap_release_folio(struct folio *folio, gfp_t gfp) · 3956 unmodified lines | |||
| 3957 | 3957 | ||
| 3958 | if (mapping && mapping->a_ops->release_folio) | 3958 | if (mapping && mapping->a_ops->release_folio) |
| 3959 | return mapping->a_ops->release_folio(folio, gfp); | 3959 | return mapping->a_ops->release_folio(folio, gfp); |
| 3960 | if (mapping && mapping->a_ops->releasepage) | ||
| 3961 | return mapping->a_ops->releasepage(&folio->page, gfp); | ||
| 3962 | return try_to_free_buffers(&folio->page); | 3960 | return try_to_free_buffers(&folio->page); |
| 3963 | } | 3961 | } |
| 3964 | EXPORT_SYMBOL(filemap_release_folio); | 3962 | EXPORT_SYMBOL(filemap_release_folio); |