From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org, mike.kravetz@oracle.com,
yajun.deng@linux.dev, akpm@linux-foundation.org
Subject: [failures] mm-simplify-page_zone-and-get_deferred_split_queue-with-page_pgdat.patch removed from -mm tree
Date: Wed, 02 Nov 2022 13:13:24 -0700 [thread overview]
Message-ID: <20221102201325.80DAFC433D6@smtp.kernel.org> (raw)
The quilt patch titled
Subject: mm: simplify page_zone() and get_deferred_split_queue() with page_pgdat()
has been removed from the -mm tree. Its filename was
mm-simplify-page_zone-and-get_deferred_split_queue-with-page_pgdat.patch
This patch was dropped because it had testing failures
------------------------------------------------------
From: Yajun Deng <yajun.deng@linux.dev>
Subject: mm: simplify page_zone() and get_deferred_split_queue() with page_pgdat()
Date: Tue, 1 Nov 2022 10:32:19 +0800
page_zone() is too long, we can shorten it by page_pgdat().
There is no need define pgdat variable if memcg isn't NULL, so use
page_pgdat() to simplify get_deferred_split_queue().
Link: https://lkml.kernel.org/r/20221101023219.752365-1-yajun.deng@linux.dev
Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
include/linux/mm.h | 8 ++++----
mm/huge_memory.c | 7 ++-----
2 files changed, 6 insertions(+), 9 deletions(-)
--- a/include/linux/mm.h~mm-simplify-page_zone-and-get_deferred_split_queue-with-page_pgdat
+++ a/include/linux/mm.h
@@ -1448,14 +1448,14 @@ static inline void page_kasan_tag_reset(
#endif /* CONFIG_KASAN_SW_TAGS || CONFIG_KASAN_HW_TAGS */
-static inline struct zone *page_zone(const struct page *page)
+static inline pg_data_t *page_pgdat(const struct page *page)
{
- return &NODE_DATA(page_to_nid(page))->node_zones[page_zonenum(page)];
+ return NODE_DATA(page_to_nid(page));
}
-static inline pg_data_t *page_pgdat(const struct page *page)
+static inline struct zone *page_zone(const struct page *page)
{
- return NODE_DATA(page_to_nid(page));
+ return &page_pgdat(page)->node_zones[page_zonenum(page)];
}
static inline struct zone *folio_zone(const struct folio *folio)
--- a/mm/huge_memory.c~mm-simplify-page_zone-and-get_deferred_split_queue-with-page_pgdat
+++ a/mm/huge_memory.c
@@ -562,19 +562,16 @@ pmd_t maybe_pmd_mkwrite(pmd_t pmd, struc
static inline struct deferred_split *get_deferred_split_queue(struct page *page)
{
struct mem_cgroup *memcg = page_memcg(compound_head(page));
- struct pglist_data *pgdat = NODE_DATA(page_to_nid(page));
if (memcg)
return &memcg->deferred_split_queue;
else
- return &pgdat->deferred_split_queue;
+ return &page_pgdat(page)->deferred_split_queue;
}
#else
static inline struct deferred_split *get_deferred_split_queue(struct page *page)
{
- struct pglist_data *pgdat = NODE_DATA(page_to_nid(page));
-
- return &pgdat->deferred_split_queue;
+ return &page_pgdat(page)->deferred_split_queue;
}
#endif
_
Patches currently in -mm which might be from yajun.deng@linux.dev are
reply other threads:[~2022-11-02 20:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221102201325.80DAFC433D6@smtp.kernel.org \
--to=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mike.kravetz@oracle.com \
--cc=mm-commits@vger.kernel.org \
--cc=yajun.deng@linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.