Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755964AbdCGTZp (ORCPT ); Tue, 7 Mar 2017 14:25:45 -0500 Received: from gum.cmpxchg.org ([85.214.110.215]:39158 "EHLO gum.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755763AbdCGTZK (ORCPT ); Tue, 7 Mar 2017 14:25:10 -0500 Date: Tue, 7 Mar 2017 11:59:22 -0500 From: Johannes Weiner To: Minchan Kim Cc: Andrew Morton , linux-kernel@vger.kernel.org, shli@fb.com, hillf.zj@alibaba-inc.com, hughd@google.com, mgorman@techsingularity.net, mhocko@suse.com, riel@redhat.com, mm-commits@vger.kernel.org Subject: Re: + mm-reclaim-madv_free-pages.patch added to -mm tree Message-ID: <20170307165922.GB21425@cmpxchg.org> References: <58b616a6.hCl1D/BVn0fPDi+K%akpm@linux-foundation.org> <20170303025237.GB3503@bbox> <20170303151851.GA16835@cmpxchg.org> <20170306030344.GG8779@bbox> <20170306154906.GA2090@cmpxchg.org> <20170307055551.GC29458@bbox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170307055551.GC29458@bbox> User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 784 Lines: 22 On Tue, Mar 07, 2017 at 02:55:51PM +0900, Minchan Kim wrote: > From d42d296950c3bbce74afddcff307fa18eef305fe Mon Sep 17 00:00:00 2001 > From: Minchan Kim > Date: Tue, 7 Mar 2017 14:48:37 +0900 > Subject: [PATCH] mm: fix lazyfree bug on check in try_to_unmap_one > > If a page is swapbacked, it means it should be in swapcache > in try_to_unmap_one's path. > > If a page is !swapbacked, it mean it shouldn't be in swapcache > in try_to_unmap_one's path. > > Check both two cases all at once and if it fails, warn and > return SWAP_FAIL. Such bug never mean we should shut down > the kernel. > > Suggested-by: Johannes Weiner > Signed-off-by: Minchan Kim Acked-by: Johannes Weiner Thanks Minchan