* [to-be-updated] mm-remove-read_cache_page_gfp.patch removed from -mm tree
@ 2026-11-05 15:54 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2026-11-05 15:54 UTC (permalink / raw)
To: mm-commits, tz2294, akpm
The quilt patch titled
Subject: mm: remove read_cache_page_gfp()
has been removed from the -mm tree. Its filename was
mm-remove-read_cache_page_gfp.patch
This patch was dropped because an updated version will be issued
------------------------------------------------------
From: Tal Zussman <tz2294@columbia.edu>
Subject: mm: remove read_cache_page_gfp()
Date: Mon, 02 Nov 2026 17:54:12 -0500
There are no callers left. Point the comment on shmem_read_folio_gfp()
at mapping_read_folio_gfp() instead.
Link: https://lore.kernel.org/20261102-page-wrappers-v1-7-e7280bdb31f6@columbia.edu
Signed-off-by: Tal Zussman <tz2294@columbia.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: SJ Park <sj@kernel.org>
Acked-by: Zi Yan <ziy@nvidia.com>
Reviewed-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
Reviewed-by: Vishal Moola (Fractile) <vishal.moola@gmail.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Jan Kara <jack@suse.cz>
Cc: David Hildenbrand <david@kernel.org>
Cc: Liam R. Howlett <liam@infradead.org>
Cc: Vlastimil Babka <vbabka@kernel.org>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Joshua Hahn <joshua.hahnjy@gmail.com>
Cc: Byungchul Park <byungchul@sk.com>
Cc: Gregory Price <gourry@gourry.net>
Cc: Ying Huang <ying.huang@linux.alibaba.com>
Cc: Alistair Popple <apopple@nvidia.com>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: Peter Xu <peterx@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
---
include/linux/pagemap.h | 2 --
mm/filemap.c | 23 -----------------------
mm/shmem.c | 4 ++--
3 files changed, 2 insertions(+), 27 deletions(-)
--- a/include/linux/pagemap.h~mm-remove-read_cache_page_gfp
+++ a/include/linux/pagemap.h
@@ -962,8 +962,6 @@ struct folio *mapping_read_folio_gfp(str
gfp_t flags);
struct page *read_cache_page(struct address_space *, pgoff_t index,
filler_t *filler, struct file *file);
-extern struct page * read_cache_page_gfp(struct address_space *mapping,
- pgoff_t index, gfp_t gfp_mask);
static inline struct page *read_mapping_page(struct address_space *mapping,
pgoff_t index, struct file *file)
--- a/mm/filemap.c~mm-remove-read_cache_page_gfp
+++ a/mm/filemap.c
@@ -4260,29 +4260,6 @@ struct page *read_cache_page(struct addr
}
EXPORT_SYMBOL(read_cache_page);
-/**
- * read_cache_page_gfp - read into page cache, using specified page allocation flags.
- * @mapping: the page's address_space
- * @index: the page index
- * @gfp: the page allocator flags to use if allocating
- *
- * This is the same as "read_mapping_page(mapping, index, NULL)", but with
- * any new page allocations done using the specified allocation flags.
- *
- * If the page does not get brought uptodate, return -EIO.
- *
- * The function expects mapping->invalidate_lock to be already held.
- *
- * Return: up to date page on success, ERR_PTR() on failure.
- */
-struct page *read_cache_page_gfp(struct address_space *mapping,
- pgoff_t index,
- gfp_t gfp)
-{
- return do_read_cache_page(mapping, index, NULL, NULL, gfp);
-}
-EXPORT_SYMBOL(read_cache_page_gfp);
-
/*
* Warn about a page cache invalidation failure during a direct I/O write.
*/
--- a/mm/shmem.c~mm-remove-read_cache_page_gfp
+++ a/mm/shmem.c
@@ -6190,9 +6190,9 @@ int shmem_zero_setup_desc(struct vm_area
* @index: the folio index
* @gfp: the page allocator flags to use if allocating
*
- * This behaves as a tmpfs "read_cache_page_gfp(mapping, index, gfp)",
+ * This behaves as a tmpfs "mapping_read_folio_gfp(mapping, index, gfp)",
* with any new page allocations done using the specified allocation flags.
- * But read_cache_page_gfp() uses the ->read_folio() method: which does not
+ * But mapping_read_folio_gfp() uses the ->read_folio() method: which does not
* suit tmpfs, since it may have pages in swapcache, and needs to find those
* for itself; although drivers/gpu/drm i915 and ttm rely upon this support.
*
_
Patches currently in -mm which might be from tz2294@columbia.edu are
mm-memcontrol-remove-mod_memcg_page_state.patch
mm-memcontrol-remove-page_memcg_check.patch
mm-userfaultfd-store-the-childs-new-uffd-context-in-the-wait-queue-entry.patch
mm-remove-thp_size-and-thp_order.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-05 15:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-05 15:54 [to-be-updated] mm-remove-read_cache_page_gfp.patch removed from -mm tree Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.