* [merged mm-stable] mm-move-free_area_empty-to-mm-internalh.patch removed from -mm tree
@ 2023-04-18 23:33 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2023-04-18 23:33 UTC (permalink / raw)
To: mm-commits, willy, rppt, akpm
The quilt patch titled
Subject: mm: move free_area_empty() to mm/internal.h
has been removed from the -mm tree. Its filename was
mm-move-free_area_empty-to-mm-internalh.patch
This patch was dropped because it was merged into the mm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: "Mike Rapoport (IBM)" <rppt@kernel.org>
Subject: mm: move free_area_empty() to mm/internal.h
Date: Sun, 26 Mar 2023 19:02:15 +0300
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>
---
include/linux/mmzone.h | 5 -----
mm/internal.h | 5 +++++
2 files changed, 5 insertions(+), 5 deletions(-)
--- a/include/linux/mmzone.h~mm-move-free_area_empty-to-mm-internalh
+++ a/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
--- a/mm/internal.h~mm-move-free_area_empty-to-mm-internalh
+++ a/mm/internal.h
@@ -517,6 +517,11 @@ void init_cma_reserved_pageblock(struct
int find_suitable_fallback(struct free_area *area, unsigned int order,
int migratetype, bool only_stealable, bool *can_steal);
+static inline bool free_area_empty(struct free_area *area, int migratetype)
+{
+ return list_empty(&area->free_list[migratetype]);
+}
+
/*
* These three helpers classifies VMAs for virtual memory accounting.
*/
_
Patches currently in -mm which might be from rppt@kernel.org are
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-18 23:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-18 23:33 [merged mm-stable] mm-move-free_area_empty-to-mm-internalh.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.