* + mm-proc-remove-redundant-page-validation-of-pte_page.patch added to -mm tree
@ 2022-03-16 21:11 Andrew Morton
2022-04-15 14:01 ` Xianting Tian
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Morton @ 2022-03-16 21:11 UTC (permalink / raw)
To: mm-commits, shy828301, sashal, linmiaohe, kch, adobriyan,
xianting.tian, akpm
The patch titled
Subject: fs/proc/task_mmu.c: remove redundant page validation of pte_page
has been added to the -mm tree. Its filename is
mm-proc-remove-redundant-page-validation-of-pte_page.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/mm-proc-remove-redundant-page-validation-of-pte_page.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/mm-proc-remove-redundant-page-validation-of-pte_page.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: Xianting Tian <xianting.tian@linux.alibaba.com>
Subject: fs/proc/task_mmu.c: remove redundant page validation of pte_page
pte_page() always returns a valid page, so remove the redundant page
validation, as we did in many other places.
Link: https://lkml.kernel.org/r/20220316025947.328276-1-xianting.tian@linux.alibaba.com
Signed-off-by: Xianting Tian <xianting.tian@linux.alibaba.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Yang Shi <shy828301@gmail.com>
Cc: Sasha Levin <sashal@kernel.org>
Cc: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
fs/proc/task_mmu.c | 2 --
1 file changed, 2 deletions(-)
--- a/fs/proc/task_mmu.c~mm-proc-remove-redundant-page-validation-of-pte_page
+++ a/fs/proc/task_mmu.c
@@ -1873,8 +1873,6 @@ static int gather_hugetlb_stats(pte_t *p
return 0;
page = pte_page(huge_pte);
- if (!page)
- return 0;
md = walk->private;
gather_stats(page, md, pte_dirty(huge_pte), 1);
_
Patches currently in -mm which might be from xianting.tian@linux.alibaba.com are
mm-proc-remove-redundant-page-validation-of-pte_page.patch
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: + mm-proc-remove-redundant-page-validation-of-pte_page.patch added to -mm tree
2022-03-16 21:11 + mm-proc-remove-redundant-page-validation-of-pte_page.patch added to -mm tree Andrew Morton
@ 2022-04-15 14:01 ` Xianting Tian
0 siblings, 0 replies; 2+ messages in thread
From: Xianting Tian @ 2022-04-15 14:01 UTC (permalink / raw)
To: Andrew Morton, mm-commits, shy828301, sashal, linmiaohe, kch, adobriyan
Could you share the reason why the patch is removed? thanks
在 2022/3/17 上午5:11, Andrew Morton 写道:
> The patch titled
> Subject: fs/proc/task_mmu.c: remove redundant page validation of pte_page
> has been added to the -mm tree. Its filename is
> mm-proc-remove-redundant-page-validation-of-pte_page.patch
>
> This patch should soon appear at
> https://ozlabs.org/~akpm/mmots/broken-out/mm-proc-remove-redundant-page-validation-of-pte_page.patch
> and later at
> https://ozlabs.org/~akpm/mmotm/broken-out/mm-proc-remove-redundant-page-validation-of-pte_page.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: Xianting Tian <xianting.tian@linux.alibaba.com>
> Subject: fs/proc/task_mmu.c: remove redundant page validation of pte_page
>
> pte_page() always returns a valid page, so remove the redundant page
> validation, as we did in many other places.
>
> Link: https://lkml.kernel.org/r/20220316025947.328276-1-xianting.tian@linux.alibaba.com
> Signed-off-by: Xianting Tian <xianting.tian@linux.alibaba.com>
> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
> Cc: Alexey Dobriyan <adobriyan@gmail.com>
> Cc: Yang Shi <shy828301@gmail.com>
> Cc: Sasha Levin <sashal@kernel.org>
> Cc: Miaohe Lin <linmiaohe@huawei.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
>
> fs/proc/task_mmu.c | 2 --
> 1 file changed, 2 deletions(-)
>
> --- a/fs/proc/task_mmu.c~mm-proc-remove-redundant-page-validation-of-pte_page
> +++ a/fs/proc/task_mmu.c
> @@ -1873,8 +1873,6 @@ static int gather_hugetlb_stats(pte_t *p
> return 0;
>
> page = pte_page(huge_pte);
> - if (!page)
> - return 0;
>
> md = walk->private;
> gather_stats(page, md, pte_dirty(huge_pte), 1);
> _
>
> Patches currently in -mm which might be from xianting.tian@linux.alibaba.com are
>
> mm-proc-remove-redundant-page-validation-of-pte_page.patch
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-04-15 14:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-16 21:11 + mm-proc-remove-redundant-page-validation-of-pte_page.patch added to -mm tree Andrew Morton
2022-04-15 14:01 ` Xianting Tian
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).