Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2766580ybh; Mon, 16 Mar 2020 09:18:13 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvlD97TYzVuR+hHOWkUpZMINnq3LBli7lgo9IxwBCjkD6qBl+BvcYJcH4HFCY4A2Yzs2Af4 X-Received: by 2002:aca:7285:: with SMTP id p127mr269707oic.32.1584375493814; Mon, 16 Mar 2020 09:18:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584375493; cv=none; d=google.com; s=arc-20160816; b=j8qX7vaFLh2qAK4G/9014tPjtaTXpKqgCMyTvOIhI3pRB9FcdwtQUPhlxnMJ8Bq1nT n9pCc/WFxE99GWGiyl93DFxZAO8IrKf3RBnPfqG2Uz40Il5cYZ3ME5UVXF5joLleD3eP uyLdUpmst7FM9go/zxD3d8l4tyAo/X7vbj5zu0JYSERduHSRA35flX7EmGA6ATWjHUlz hzBQARQuGrBdSSHeCMoLtH+eS5psazo3pXtZG2om6QnlYfeo4ukHjKynejDQuyA2TjiH sD5WkVuGfHU2bfLY/UqVAI76tKUav08IcF+oxXqJ8nB5JOtfP2De750yRKuVkKzfzEP/ IpUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=0n3SIaDpi5LQqX+o3orVS785fReSy2zpbwRqWh4oqjg=; b=bg0owy9G6Z8pkN33IbI+VvYVCaOQtWEGsMCNPZHbBUjcLdQdTDTZ6oBQn6mL71EHvF QppDVCXSXdbsNtYnQLtCqgTqGmixb4C/P14ChUxMQpk2Evd65CBqN5JA4zyD/VSMByKh HkqZ95cgSFO+TUg80/6QFMUlRRXwr8ndWMHGYs3p6icpDcoxGDvRDqr4vGRr8iQF1THM LPGyB2J9eQYAfp0UWOzjBJ2A7l4S7x7uLYMmH7nXmuNu3U8S5w9qgxHEX4YtU4zajd0T cB+ZGMgEY2zpY542pEMTIWUKvLth9bQGncYCN1NPzIZC16JCmlTaKWbKapK9XRYu3P0a /sYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=ynm27Tfr; 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=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e10si180140otk.41.2020.03.16.09.18.00; Mon, 16 Mar 2020 09:18:13 -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=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=ynm27Tfr; 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=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732089AbgCPQRQ (ORCPT + 99 others); Mon, 16 Mar 2020 12:17:16 -0400 Received: from mail-qt1-f176.google.com ([209.85.160.176]:36301 "EHLO mail-qt1-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731993AbgCPQRQ (ORCPT ); Mon, 16 Mar 2020 12:17:16 -0400 Received: by mail-qt1-f176.google.com with SMTP id m33so14680089qtb.3 for ; Mon, 16 Mar 2020 09:17:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=0n3SIaDpi5LQqX+o3orVS785fReSy2zpbwRqWh4oqjg=; b=ynm27TfrRyKHAdDFIldkhG7zJ/MQQzoo7CW9RUu1IRwZZKTY1YJLX/RF5sj0k8BO4c rxPZWouCgToBlOFDFH4B3uK//Gwb0sXote7N713pA1rQzs44kdkNM2oalwGihI8WTN9y GHJw++6mIfIwrkX5gmwAe6KsnpqHQOBCQeClbzUUm08mJM9YGGMNmdNbL8y+thQolOS3 yZJ41oZGobwR9U86gk2hdjfYlv4770HZRYJTv38pVhbMojBmeO3AeexZpgTw5b3sgXwb Mu48kDivG9+LnvAqK7LDJKcEdj/nOOwXijYzvPAzNIbKNa5+zDJt275V1LtwHNg0AwUj v/LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=0n3SIaDpi5LQqX+o3orVS785fReSy2zpbwRqWh4oqjg=; b=I7dz7Slqkcgm7Bs/Zw8tdU2pqDNYtdUl9A2MVKOVm3hMKNJHa0kz+SATH/CAsw21sv PSiFNmVl1CSIO5foD41tf2PTopuGzlT+nXbNpLU0XjsMUvT1dtViVevXlyTmQnTuN6oV 7L3fPlGdrdT/HO+REZUtdMTh93ZiMPo0Qi4TskPajwOGqbqefyxJmjLvj9Y96ksb5J6z Zk6DrOnl2a4iKX62tPw9C2afxbmkMgb8Jbj4iA/VFe1C8ohj66y2q0rwJqNUWTGJJCHA Or2jVixnja1sF3bd6Pr7ocHhynYUfu/LBG5isCz7RDpw04S1eUqCxlmjwIJkgITGC9Tp jbTg== X-Gm-Message-State: ANhLgQ2Pcz1DBarHfq18/56Txs0ew/48DimAeypTNi4wuIe2P77CqQqy 1adZYvOIQFqJw9Z2ahSg3bjp6Q== X-Received: by 2002:ac8:6b95:: with SMTP id z21mr860291qts.358.1584375435596; Mon, 16 Mar 2020 09:17:15 -0700 (PDT) Received: from localhost (70.44.39.90.res-cmts.bus.ptd.net. [70.44.39.90]) by smtp.gmail.com with ESMTPSA id x9sm121128qtk.7.2020.03.16.09.17.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Mar 2020 09:17:14 -0700 (PDT) Date: Mon, 16 Mar 2020 12:17:13 -0400 From: Johannes Weiner To: "Huang, Ying" Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, David Hildenbrand , David Rientjes , Michal Hocko , Pankaj Gupta , Dave Hansen , Mel Gorman , Vlastimil Babka , Minchan Kim , Hugh Dickins , Rik van Riel Subject: Re: [PATCH -V2] mm: Code cleanup for MADV_FREE Message-ID: <20200316161713.GD67986@cmpxchg.org> References: <20200316063740.2542014-1-ying.huang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200316063740.2542014-1-ying.huang@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 16, 2020 at 02:37:40PM +0800, Huang, Ying wrote: > From: Huang Ying > > Some comments for MADV_FREE is revised and added to help people understand the > MADV_FREE code, especially the page flag, PG_swapbacked. This makes > page_is_file_cache() isn't consistent with its comments. So the function is > renamed to page_is_file_lru() to make them consistent again. All these are put > in one patch as one logical change. > > Signed-off-by: "Huang, Ying" > Suggested-by: David Hildenbrand > Suggested-by: Johannes Weiner > Suggested-and-acked-by: David Rientjes > Acked-by: Michal Hocko > Acked-by: Pankaj Gupta > Cc: Dave Hansen > Cc: Mel Gorman > Cc: Vlastimil Babka > Cc: Minchan Kim > Cc: Hugh Dickins > Cc: Rik van Riel Thanks, this is definitely an improvement. Acked-by: Johannes Weiner