projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a568b41
)
mm: remove page_cache_alloc()
author
Matthew Wilcox (Oracle)
<willy@infradead.org>
Wed, 24 Apr 2024 19:19:06 +0000
(20:19 +0100)
committer
Andrew Morton
<akpm@linux-foundation.org>
Mon, 6 May 2024 00:53:48 +0000
(17:53 -0700)
Patch series "More folio compat code removal".
More code removal with bonus kernel-doc addition.
This patch (of 7):
All callers have now been converted to filemap_alloc_folio().
Link:
https://lkml.kernel.org/r/20240424191914.361554-1-willy@infradead.org
Link:
https://lkml.kernel.org/r/20240424191914.361554-2-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/pagemap.h
patch
|
blob
|
history
diff --git
a/include/linux/pagemap.h
b/include/linux/pagemap.h
index 65e332df4d7696d1e507e80b2fa47e8a17387675..2a0bc2ff5258373ba1b72e15b78cb79bf858bf2a 100644
(file)
--- a/
include/linux/pagemap.h
+++ b/
include/linux/pagemap.h
@@
-558,11
+558,6
@@
static inline struct page *__page_cache_alloc(gfp_t gfp)
return &filemap_alloc_folio(gfp, 0)->page;
}
-static inline struct page *page_cache_alloc(struct address_space *x)
-{
- return __page_cache_alloc(mapping_gfp_mask(x));
-}
-
static inline gfp_t readahead_gfp_mask(struct address_space *x)
{
return mapping_gfp_mask(x) | __GFP_NORETRY | __GFP_NOWARN;