* [merged mm-stable] mm-mempolicy-remove-unneeded-out-label.patch removed from -mm tree
@ 2022-07-30 1:08 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-07-30 1:08 UTC (permalink / raw)
To: mm-commits, linmiaohe, akpm
The quilt patch titled
Subject: mm/mempolicy: remove unneeded out label
has been removed from the -mm tree. Its filename was
mm-mempolicy-remove-unneeded-out-label.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: Miaohe Lin <linmiaohe@huawei.com>
Subject: mm/mempolicy: remove unneeded out label
Date: Tue, 19 Jul 2022 19:52:33 +0800
We can use unlock label to unlock ptl and return ret directly to remove
the unneeded out label and reduce the size of mempolicy.o. No functional
change intended.
[Before]
text data bss dec hex filename
26702 3972 6168 36842 8fea mm/mempolicy.o
[After]
text data bss dec hex filename
26662 3972 6168 36802 8fc2 mm/mempolicy.o
Link: https://lkml.kernel.org/r/20220719115233.6706-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/mempolicy.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
--- a/mm/mempolicy.c~mm-mempolicy-remove-unneeded-out-label
+++ a/mm/mempolicy.c
@@ -465,9 +465,8 @@ static int queue_pages_pmd(pmd_t *pmd, s
}
page = pmd_page(*pmd);
if (is_huge_zero_page(page)) {
- spin_unlock(ptl);
walk->action = ACTION_CONTINUE;
- goto out;
+ goto unlock;
}
if (!queue_pages_required(page, qp))
goto unlock;
@@ -484,7 +483,6 @@ static int queue_pages_pmd(pmd_t *pmd, s
ret = -EIO;
unlock:
spin_unlock(ptl);
-out:
return ret;
}
_
Patches currently in -mm which might be from linmiaohe@huawei.com are
mm-hugetlb-avoid-corrupting-page-mapping-in-hugetlb_mcopy_atomic_pte.patch
mm-page_alloc-minor-clean-up-for-memmap_init_compound.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-07-30 1:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-30 1:08 [merged mm-stable] mm-mempolicy-remove-unneeded-out-label.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.