[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87tv23h9r8.fsf@yhuang-dev.intel.com>
Date: Wed, 01 Apr 2020 16:48:27 +0800
From: "Huang\, Ying" <ying.huang@...el.com>
To: Michal Hocko <mhocko@...nel.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>, <linux-mm@...ck.org>,
<linux-kernel@...r.kernel.org>, Minchan Kim <minchan@...nel.org>,
"Hugh Dickins" <hughd@...gle.com>, Rik van Riel <riel@...riel.com>
Subject: Re: [PATCH] mm, trivial: Simplify swap related code in try_to_unmap_one()
Michal Hocko <mhocko@...nel.org> writes:
> On Wed 01-04-20 09:11:13, Huang, Ying wrote:
> [...]
>> Then what is the check !PageSwapBacked() && PageSwapCache() for? To
>> prevent someone to change the definition of PageSwapCache() in the
>> future to break this?
>
> Yes this is my understading. It is essentially an assert that enforces
> the assumption about swap cache vs. swap backed being coupled.
OK. Then we can just keep the current code.
Best Regards,
Huang, Ying
Powered by blists - more mailing lists