[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <374a5d13-e5d2-9f5e-0185-5b0f2a613fa6@linux.alibaba.com>
Date: Tue, 3 Nov 2020 10:43:07 +0800
From: Alex Shi <alex.shi@...ux.alibaba.com>
To: Matthew Wilcox <willy@...radead.org>
Cc: Johannes Weiner <hannes@...xchg.org>, akpm@...ux-foundation.org,
mgorman@...hsingularity.net, tj@...nel.org, hughd@...gle.com,
khlebnikov@...dex-team.ru, daniel.m.jordan@...cle.com,
lkp@...el.com, linux-mm@...ck.org, linux-kernel@...r.kernel.org,
cgroups@...r.kernel.org, shakeelb@...gle.com,
iamjoonsoo.kim@....com, richard.weiyang@...il.com,
kirill@...temov.name, alexander.duyck@...il.com,
rong.a.chen@...el.com, mhocko@...e.com, vdavydov.dev@...il.com,
shy828301@...il.com
Subject: Re: [PATCH v20 04/20] mm/thp: use head for head page in
lru_add_page_tail
在 2020/11/3 上午12:03, Matthew Wilcox 写道:
> On Fri, Oct 30, 2020 at 10:46:54AM +0800, Alex Shi wrote:
>> -static void lru_add_page_tail(struct page *page, struct page *page_tail,
>> +static void lru_add_page_tail(struct page *head, struct page *tail,
>> struct lruvec *lruvec, struct list_head *list)
>> {
>> - VM_BUG_ON_PAGE(!PageHead(page), page);
>> - VM_BUG_ON_PAGE(PageCompound(page_tail), page);
>> - VM_BUG_ON_PAGE(PageLRU(page_tail), page);
>> + VM_BUG_ON_PAGE(!PageHead(head), head);
>> + VM_BUG_ON_PAGE(PageCompound(tail), head);
>> + VM_BUG_ON_PAGE(PageLRU(tail), head);
>
> These last two should surely have been
> VM_BUG_ON_PAGE(PageCompound(tail), tail);
> VM_BUG_ON_PAGE(PageLRU(tail), tail);
>
> Also, what do people think about converting these to VM_BUG_ON_PGFLAGS?
Hi Matthew,
Thanks for reminder! Looks these changes worth for another patch.
>
> Either way:
>
> Reviewed-by: Matthew Wilcox (Oracle) <willy@...radead.org>
>
I will take this option this time. :)
Thanks!
Alex
Powered by blists - more mailing lists