summaryrefslogtreecommitdiffstats
path: root/mm/folio-compat.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-03-07 15:34:09 +0100
committerAndrew Morton <akpm@linux-foundation.org>2023-04-06 04:42:42 +0200
commit48c9d11375fc66f1e59d0e9b27d121e015a50904 (patch)
treeddbff60e826453cb9b79f2ea8c56666ed804b4f5 /mm/folio-compat.c
parentshmem: open code the page cache lookup in shmem_get_folio_gfp (diff)
downloadlinux-48c9d11375fc66f1e59d0e9b27d121e015a50904.tar.xz
linux-48c9d11375fc66f1e59d0e9b27d121e015a50904.zip
mm: remove FGP_ENTRY
FGP_ENTRY is unused now, so remove it. Link: https://lkml.kernel.org/r/20230307143410.28031-7-hch@lst.de Signed-off-by: Christoph Hellwig <hch@lst.de> Cc: Andreas Gruenbacher <agruenba@redhat.com> Cc: Hugh Dickins <hughd@google.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Ryusuke Konishi <konishi.ryusuke@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/folio-compat.c')
-rw-r--r--mm/folio-compat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/folio-compat.c b/mm/folio-compat.c
index cabcd1de9ecb..1754daa85d35 100644
--- a/mm/folio-compat.c
+++ b/mm/folio-compat.c
@@ -97,8 +97,8 @@ struct page *pagecache_get_page(struct address_space *mapping, pgoff_t index,
struct folio *folio;
folio = __filemap_get_folio(mapping, index, fgp_flags, gfp);
- if (!folio || xa_is_value(folio))
- return &folio->page;
+ if (!folio)
+ return NULL;
return folio_file_page(folio, index);
}
EXPORT_SYMBOL(pagecache_get_page);