mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + mm-page_alloc-redundant-definition-variables-of-pfn-in-for-loop.patch added to -mm tree
@ 2021-04-03  1:06 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2021-04-03  1:06 UTC (permalink / raw)
  To: huxiang, mm-commits


The patch titled
     Subject: mm/page_alloc: redundant definition variables of pfn in for loop
has been added to the -mm tree.  Its filename is
     mm-page_alloc-redundant-definition-variables-of-pfn-in-for-loop.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/mm-page_alloc-redundant-definition-variables-of-pfn-in-for-loop.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/mm-page_alloc-redundant-definition-variables-of-pfn-in-for-loop.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/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: huxiang <huxiang@uniontech.com>
Subject: mm/page_alloc: redundant definition variables of pfn in for loop

This variable pfn is defined repeatedly, so it can be deleted.

Link: https://lkml.kernel.org/r/20210401022802.10358-1-huxiang@uniontech.com
Signed-off-by: huxiang <huxiang@uniontech.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/page_alloc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/mm/page_alloc.c~mm-page_alloc-redundant-definition-variables-of-pfn-in-for-loop
+++ a/mm/page_alloc.c
@@ -3322,7 +3322,7 @@ void free_unref_page_list(struct list_he
 
 	local_irq_save(flags);
 	list_for_each_entry_safe(page, next, list, lru) {
-		unsigned long pfn = page_private(page);
+		pfn = page_private(page);
 
 		set_page_private(page, 0);
 		trace_mm_page_free_batched(page);
_

Patches currently in -mm which might be from huxiang@uniontech.com are

mm-page_alloc-redundant-definition-variables-of-pfn-in-for-loop.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-03  1:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-03  1:06 + mm-page_alloc-redundant-definition-variables-of-pfn-in-for-loop.patch added to -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).