projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96ae4c9
)
mm: fix folio_alloc_noprof()
author
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 1 Sep 2024 20:24:59 +0000
(16:24 -0400)
committer
Andrew Morton
<akpm@linux-foundation.org>
Mon, 9 Sep 2024 23:39:05 +0000
(16:39 -0700)
folio_alloc_noprof) wasn't calling the _noprof version, causing
allocations to be accounted here instead of to the caller
Link:
https://lkml.kernel.org/r/20240901202459.4867-1-kent.overstreet@linux.dev
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/gfp.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/gfp.h
b/include/linux/gfp.h
index 03ba9563c6db9080f9838120db67c5743c148f2b..a951de920e208991b37fb2d878d9a0e9c550548c 100644
(file)
--- a/
include/linux/gfp.h
+++ b/
include/linux/gfp.h
@@
-319,7
+319,7
@@
static inline struct page *alloc_pages_mpol_noprof(gfp_t gfp, unsigned int order
}
static inline struct folio *folio_alloc_noprof(gfp_t gfp, unsigned int order)
{
- return __folio_alloc_node(gfp, order, numa_node_id());
+ return __folio_alloc_node
_noprof
(gfp, order, numa_node_id());
}
static inline struct folio *folio_alloc_mpol_noprof(gfp_t gfp, unsigned int order,
struct mempolicy *mpol, pgoff_t ilx, int nid)