[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87a7qudlgc.fsf@yhuang-dev.intel.com>
Date: Sat, 14 Jul 2018 20:57:07 +0800
From: "Huang\, Ying" <ying.huang@...el.com>
To: Daniel Jordan <daniel.m.jordan@...cle.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>, <linux-mm@...ck.org>,
<linux-kernel@...r.kernel.org>,
Dave Hansen <dave.hansen@...ux.intel.com>,
Michal Hocko <mhocko@...e.com>,
Johannes Weiner <hannes@...xchg.org>,
"Shaohua Li" <shli@...nel.org>, Hugh Dickins <hughd@...gle.com>,
Minchan Kim <minchan@...nel.org>,
Rik van Riel <riel@...hat.com>,
Dan Williams <dan.j.williams@...el.com>
Subject: Re: [PATCH 6/6] swap, put_swap_page: Share more between huge/normal code path
Daniel Jordan <daniel.m.jordan@...cle.com> writes:
> On Fri, Jul 13, 2018 at 07:36:36AM +0800, Huang, Ying wrote:
>> From: Huang Ying <ying.huang@...el.com>
>>
>> In this patch, locking related code is shared between huge/normal code
>> path in put_swap_page() to reduce code duplication. And `free_entries
>> == 0` case is merged into more general `free_entries !=
>> SWAPFILE_CLUSTER` case, because the new locking method makes it easy.
>
> Might be a bit easier to think about the two changes if they were split up.
I just think the second change appears too trivial to be a separate patch.
> Agree with Dave's comment from patch 1, but otherwise the series looks ok to
> me. I like the nr_swap_entries macro, that's clever.
Thanks!
Best Regards,
Huang, Ying
Powered by blists - more mailing lists