* [PATCH] mm/vmscan: fix page_freeze_refs in comment.
@ 2018-07-25 23:34 Jiang Biao
2018-07-26 6:11 ` Michal Hocko
0 siblings, 1 reply; 3+ messages in thread
From: Jiang Biao @ 2018-07-25 23:34 UTC (permalink / raw)
To: akpm, mhocko, hannes, hillf.zj, minchan, ying.huang, mgorman
Cc: linux-mm, linux-kernel, jiang.biao2, zhong.weidong
page_freeze_refs has already been relplaced by page_ref_freeze, but
it is not modified in the comment.
Signed-off-by: Jiang Biao <jiang.biao2@zte.com.cn>
---
mm/vmscan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 03822f8..d29e207 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -744,7 +744,7 @@ static int __remove_mapping(struct address_space *mapping, struct page *page,
refcount = 2;
if (!page_ref_freeze(page, refcount))
goto cannot_free;
- /* note: atomic_cmpxchg in page_freeze_refs provides the smp_rmb */
+ /* note: atomic_cmpxchg in page_refs_freeze provides the smp_rmb */
if (unlikely(PageDirty(page))) {
page_ref_unfreeze(page, refcount);
goto cannot_free;
--
2.7.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mm/vmscan: fix page_freeze_refs in comment.
2018-07-25 23:34 [PATCH] mm/vmscan: fix page_freeze_refs in comment Jiang Biao
@ 2018-07-26 6:11 ` Michal Hocko
2018-07-26 6:59 ` jiang.biao2
0 siblings, 1 reply; 3+ messages in thread
From: Michal Hocko @ 2018-07-26 6:11 UTC (permalink / raw)
To: Jiang Biao
Cc: akpm, hannes, hillf.zj, minchan, ying.huang, mgorman, linux-mm,
linux-kernel, zhong.weidong
On Thu 26-07-18 07:34:17, Jiang Biao wrote:
> page_freeze_refs has already been relplaced by page_ref_freeze, but
> it is not modified in the comment.
Hmm
$ git grep page_refs_freeze origin/master
$
The same is the case in the linux-next tree. Which tree are you looking at?
>
> Signed-off-by: Jiang Biao <jiang.biao2@zte.com.cn>
> ---
> mm/vmscan.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/mm/vmscan.c b/mm/vmscan.c
> index 03822f8..d29e207 100644
> --- a/mm/vmscan.c
> +++ b/mm/vmscan.c
> @@ -744,7 +744,7 @@ static int __remove_mapping(struct address_space *mapping, struct page *page,
> refcount = 2;
> if (!page_ref_freeze(page, refcount))
> goto cannot_free;
> - /* note: atomic_cmpxchg in page_freeze_refs provides the smp_rmb */
> + /* note: atomic_cmpxchg in page_refs_freeze provides the smp_rmb */
> if (unlikely(PageDirty(page))) {
> page_ref_unfreeze(page, refcount);
> goto cannot_free;
> --
> 2.7.4
>
--
Michal Hocko
SUSE Labs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mm/vmscan: fix page_freeze_refs in comment.
2018-07-26 6:11 ` Michal Hocko
@ 2018-07-26 6:59 ` jiang.biao2
0 siblings, 0 replies; 3+ messages in thread
From: jiang.biao2 @ 2018-07-26 6:59 UTC (permalink / raw)
To: mhocko
Cc: akpm, hannes, hillf.zj, minchan, ying.huang, mgorman, linux-mm,
linux-kernel, zhong.weidong
[-- Attachment #1.1: Type: text/plain, Size: 830 bytes --]
Hi,
> On Thu 26-07-18 07:34:17, Jiang Biao wrote:
>> page_freeze_refs has already been relplaced by page_ref_freeze, but
>> it is not modified in the comment.
>
> Hmm
> $ git grep page_refs_freeze origin/master
> $
>
> The same is the case in the linux-next tree. Which tree are you looking at?
I'm sorry, it should be *page_ref_freeze*, I misspelled the word.
And I checked again with git grep, found there are other places with the same
problem.
# git grep page_freeze_refs master
master:mm/ksm.c: * however, it might mean that the page is under page_freeze_refs().
master:mm/memory-failure.c: * that may make page_freeze_refs()/page_unfreeze_refs() mismatch.
master:mm/vmscan.c: /* note: atomic_cmpxchg in page_freeze_refs provides the smp_rmb */
I'll send v2 to fix all of these.
Thanks.
Jiang,
Regards
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-07-26 6:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-25 23:34 [PATCH] mm/vmscan: fix page_freeze_refs in comment Jiang Biao
2018-07-26 6:11 ` Michal Hocko
2018-07-26 6:59 ` jiang.biao2
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox