Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp311978imm; Thu, 31 May 2018 00:27:07 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJfEcJZsX89shkgB0x6b9dh7I57cJSkCDY2lR0Dvym5cnM4JPnrLV1GxJ+PoiJrhh/aWUlC X-Received: by 2002:a17:902:b28:: with SMTP id 37-v6mr5873481plq.201.1527751627278; Thu, 31 May 2018 00:27:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527751627; cv=none; d=google.com; s=arc-20160816; b=Ij4xvjkHQOH9NejhafDibwW9a9aK2Kz5BBz4jtD4FnyjdkP0L+XriR/1pS1a0fXgFM WBTqwhLwSELW8Pb5dmymyIYx+WQ1zFe1QxtGDAprYucG5ZPS+N1MtrJot3DJkORc/e4v 7NTk6PS8lWwyvCWDxmUfpHY2dM+rZyYNUEwiukQNvDs1He7X28mlex62AoCPFgCitekC DaaF6vBR5P1BYjm2s49P6uuXMuJfmQml1qj57gB4zX7sp1rZj2EDGJFlu26S5SgHbmoL MT599AsJjHpOkY4ve6KdPgyCMfkYbB1OrKjhTRzBhE2lyTgfTQtIl+5ZlwGb28FkpwKu 0Q5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=8N5R635KQuQdIa9+hqYXyJN5QnKzvVCVSr28Fe6vFyo=; b=s1CgSefu8Fp7E7VaQYtCGb8Nf0508Y234tYvtzu+SVii0sxJDkmy1nKoGyFVFib7so /pAgPzIzVu76wvlZkenyUfCAYu6njLH3dLl83sXTVV9IVt2tY+JklacSLNqavNgcJ2Qc JjWPcekoQWdv1xqvK0mi7LegJ5nxg6PYnlukGt4p2QnlhRCMn02s9EYslbLBqvxdg2OB ZdRfH/XKp/qDiTyBs9yma4luCJ722GMHVvFNzDP+xP8AWkRimGLu9rP90CKoxhZi53wN J9vihNRU4rk2VJfa5vBeDAQOdBQhQr+u/2/Y9pUj836KfvzK+U1wMBxpnL4mYq8pjhR+ wtYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r14-v6si36648053pfa.296.2018.05.31.00.26.53; Thu, 31 May 2018 00:27:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754006AbeEaH0a (ORCPT + 99 others); Thu, 31 May 2018 03:26:30 -0400 Received: from outbound-smtp16.blacknight.com ([46.22.139.233]:56451 "EHLO outbound-smtp16.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753846AbeEaH03 (ORCPT ); Thu, 31 May 2018 03:26:29 -0400 Received: from mail.blacknight.com (pemlinmail01.blacknight.ie [81.17.254.10]) by outbound-smtp16.blacknight.com (Postfix) with ESMTPS id 881DC1C1C28 for ; Thu, 31 May 2018 08:26:28 +0100 (IST) Received: (qmail 2707 invoked from network); 31 May 2018 07:26:28 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[37.228.237.73]) by 81.17.254.9 with ESMTPSA (DHE-RSA-AES256-SHA encrypted, authenticated); 31 May 2018 07:26:28 -0000 Date: Thu, 31 May 2018 08:26:27 +0100 From: Mel Gorman To: Hugh Dickins Cc: Andrew Morton , Minchan Kim , "Huang, Ying" , Jan Kara , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] mm: fix the NULL mapping case in __isolate_lru_page() Message-ID: <20180531072627.bdnclijtjkbpmxds@techsingularity.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170912 (1.9.0) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 30, 2018 at 08:23:16PM -0700, Hugh Dickins wrote: > George Boole would have noticed a slight error in 4.16 commit 69d763fc6d3a > ("mm: pin address_space before dereferencing it while isolating an LRU page"). > Fix it, to match both the comment above it, and the original behaviour. > > Although anonymous pages are not marked PageDirty at first, we have an > old habit of calling SetPageDirty when a page is removed from swap cache: > so there's a category of ex-swap pages that are easily migratable, but > were inadvertently excluded from compaction's async migration in 4.16. > > Fixes: 69d763fc6d3a ("mm: pin address_space before dereferencing it while isolating an LRU page") > Signed-off-by: Hugh Dickins Acked-by: Mel Gorman -- Mel Gorman SUSE Labs