Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp215668imm; Wed, 30 May 2018 22:03:50 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL/dtAi6y1m2GWa8fpDWDgbF/aQkRYCUF0WKqLwmxkJQjLEiL9BJ7ayd5pSIZSvGNWvRGmb X-Received: by 2002:a63:b54b:: with SMTP id u11-v6mr4315036pgo.365.1527743030055; Wed, 30 May 2018 22:03:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527743030; cv=none; d=google.com; s=arc-20160816; b=EhVG36y4ZEgPU++896Zup0FZMln81LXIgaZxz9CmF2q92lp6X7elFDKIu92X59sJ4x mOjDNGjf3h+ZgR9W8GTKfIl+CoBpbkdX4qVUksjssthkUQh9jraS5CQ+y66StUKWxr+D PDzTcZoboM6g18WXo+bVuuRdiU1YXtqB69mOTVCUa/b/356JgDVt7hK2EUMZL50Ls280 l4G0A9mGi1kr8sUJzoAsOjdbpotGw0gJdxuWcBkx/ffENhyH9oZHkE0sx03mBaVVtw0q IrH7TQq8N/OxOxIczcnWmgDO2P1YZ7MKLXy/8qz/Y+5zG9EK1c2a4UsZEhgHURXzIbu6 LTsA== 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:dkim-signature:arc-authentication-results; bh=PirnArD4xKg4SqtR3+Sr8KHhhYeIRT+PERGgzCkqK/8=; b=bVgrLsCSeyRuZFp7ZagGeY78cqMck4hkJczP3MjqK2YelDG0+6jHvYwXzPINFUlEs7 2OfBd6aE+euCwYVNnXrN7bAGmwUA+cntk7r+U3K2bkWzSGahvyIkJdCsYQqiogFKt7X7 r1l/E7C2tCa/SSYSHvDj8pSmTG0A6djwHRhjNCfS+BAztm2D+ULgpGTFAzTiz4U6juPF 38BqPb3oMIc0VEmG3AsIPh8GUEnIBnht+/t71PwK0maDdfRPeSn+k0v7Hy5wBw3R2nzk +Ma2kDf/jDIig0TnEP734SRIXgAv5XnYjTKAL9iTUyurOFAZrG5iRBNYoidp1SGnTG/R QqMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ZvBtSiCp; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o12-v6si36146383pls.422.2018.05.30.22.03.35; Wed, 30 May 2018 22:03:50 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ZvBtSiCp; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753816AbeEaFDJ (ORCPT + 99 others); Thu, 31 May 2018 01:03:09 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:43682 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750974AbeEaFDI (ORCPT ); Thu, 31 May 2018 01:03:08 -0400 Received: by mail-pf0-f194.google.com with SMTP id j20-v6so10149091pff.10 for ; Wed, 30 May 2018 22:03:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=PirnArD4xKg4SqtR3+Sr8KHhhYeIRT+PERGgzCkqK/8=; b=ZvBtSiCpyZs0AtwJF1hcfgr+LDt8ao0wKNzu7BL0mMeHZ+0T9IHZSdxPlN/YWYwL/3 FzT2OzK+OYshUdmCPLjPiI2grES117WleqXYoZe0k+o7xMGmBvRftPpjHq0BcVX6VoO5 /1K4yZgqC0iXYplHJ4kM1e8ykjQOVr92c6DgF6sgStuk+nqTzHlBLbcc/iUpWbieYfTX j8TJX2I9lwJT4rZqAYtZRRI361XRo061HlxTg7CJZM7AijVEn12bhhwZPa/EtWdjNkos RBtycYisIbKOK90REzibokG1NMbwop3119sK3n3nS88POOYGSq2SaKDSd4ZpUwmcnSSB fGpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=PirnArD4xKg4SqtR3+Sr8KHhhYeIRT+PERGgzCkqK/8=; b=dtpz6BTfwnaKuBOF7vtMr/pvansXo7t2GpiQ5jCrixASoMJooxpZf27klp78Eq4+We yEl1ZnQZS+Z0lc04S1IMseUM0Ml0JIM6elNYTuihMVcWHpq6ZyDYDtyJ9MxINgtN/Acm UGgT7FM4YvvzhB7RBA+YJcjFDoUvkf3wWbVUAa4i/AAMT5AhD9AggRzqBv3dW4UFSLaQ m9g6Wtbq4yNTg6tC9Z/NKIKHu7z8ZBqeWMoZbWzAcOSCyONSG7omx9vrPCkmEA7Jzn77 5OrJj0t0a9hNETWkOxEztw5w3CXEi0OCAvQgwulu6e+9Z70wVJN1PPzbAlE22WiIQxll q+lQ== X-Gm-Message-State: ALKqPweE80UdE0cMmwsUltuk4f2UwKw0hiBgHxs/vKgaerZu0wruPJ5L xxiSxKVAVLJVE1JK4ZN+9ko= X-Received: by 2002:a62:dc1c:: with SMTP id t28-v6mr1073122pfg.137.1527742987999; Wed, 30 May 2018 22:03:07 -0700 (PDT) Received: from rodete-desktop-imager.corp.google.com ([2401:fa00:d:10:9465:817a:e0d1:934d]) by smtp.gmail.com with ESMTPSA id i1-v6sm71068411pfj.83.2018.05.30.22.03.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 May 2018 22:03:06 -0700 (PDT) Date: Thu, 31 May 2018 14:03:02 +0900 From: Minchan Kim To: Hugh Dickins Cc: Andrew Morton , Mel Gorman , "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: <20180531050302.GA24220@rodete-desktop-imager.corp.google.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) 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: Minchan Kim Thanks, Hugh.