aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmzone.h
diff options
context:
space:
mode:
authorMike Rapoport (IBM) <rppt@kernel.org>2023-03-26 19:02:15 +0300
committerAndrew Morton <akpm@linux-foundation.org>2023-04-18 16:29:47 -0700
commit62f31bd4dcedffe3c919deb76ed65bf62c3cf80b (patch)
treee409ca731c503eab11448c664a742853a3adc37f /include/linux/mmzone.h
parente961cc5652c68610d8acb65f20267b8c55444e5b (diff)
downloadlinux-62f31bd4dcedffe3c919deb76ed65bf62c3cf80b.tar.gz
mm: move free_area_empty() to mm/internal.h
The free_area_empty() helper is only used inside mm/ so move it there to reduce noise in include/linux/mmzone.h Link: https://lkml.kernel.org/r/20230326160215.2674531-1-rppt@kernel.org Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org> Suggested-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r--include/linux/mmzone.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index 2d22e47dc1eba..337956748976e 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -110,11 +110,6 @@ struct free_area {
unsigned long nr_free;
};
-static inline bool free_area_empty(struct free_area *area, int migratetype)
-{
- return list_empty(&area->free_list[migratetype]);
-}
-
struct pglist_data;
#ifdef CONFIG_NUMA