* + mm-refactor-zone_movable_is_highmem.patch added to -mm tree
@ 2015-03-12 22:58 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2015-03-12 22:58 UTC (permalink / raw)
To: zhenzhang.zhang, rientjes, mm-commits
The patch titled
Subject: mm: refactor zone_movable_is_highmem()
has been added to the -mm tree. Its filename is
mm-refactor-zone_movable_is_highmem.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-refactor-zone_movable_is_highmem.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-refactor-zone_movable_is_highmem.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Zhang Zhen <zhenzhang.zhang@huawei.com>
Subject: mm: refactor zone_movable_is_highmem()
All callers of zone_movable_is_highmem are under #ifdef CONFIG_HIGHMEM,
so the else branch return 0 is not needed.
Signed-off-by: Zhang Zhen <zhenzhang.zhang@huawei.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
include/linux/mmzone.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff -puN include/linux/mmzone.h~mm-refactor-zone_movable_is_highmem include/linux/mmzone.h
--- a/include/linux/mmzone.h~mm-refactor-zone_movable_is_highmem
+++ a/include/linux/mmzone.h
@@ -843,16 +843,16 @@ static inline int populated_zone(struct
extern int movable_zone;
+#ifdef CONFIG_HIGHMEM
static inline int zone_movable_is_highmem(void)
{
-#if defined(CONFIG_HIGHMEM) && defined(CONFIG_HAVE_MEMBLOCK_NODE_MAP)
+#ifdef CONFIG_HAVE_MEMBLOCK_NODE_MAP
return movable_zone == ZONE_HIGHMEM;
-#elif defined(CONFIG_HIGHMEM)
- return (ZONE_MOVABLE - 1) == ZONE_HIGHMEM;
#else
- return 0;
+ return (ZONE_MOVABLE - 1) == ZONE_HIGHMEM;
#endif
}
+#endif
static inline int is_highmem_idx(enum zone_type idx)
{
_
Patches currently in -mm which might be from zhenzhang.zhang@huawei.com are
vfs-delete-vfs_readdir-function-declaration.patch
mm-hotplug-fix-concurrent-memory-hot-add-deadlock.patch
mm-refactor-zone_movable_is_highmem.patch
linux-next.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-03-12 22:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-12 22:58 + mm-refactor-zone_movable_is_highmem.patch added to -mm tree akpm
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.