Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2196616ybh; Fri, 13 Mar 2020 14:44:21 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuYXvdIu0bEKLNB/uOh2+a+LHggLxG/ShD44rUxOu1KUoaAbwnl2Tqyn67x1drw5aaip1/F X-Received: by 2002:aca:130c:: with SMTP id e12mr8479993oii.122.1584135861810; Fri, 13 Mar 2020 14:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584135861; cv=none; d=google.com; s=arc-20160816; b=fyNK19tTkU9z/VKV5CzgvM1sGZ3Px23d+QAwNN3hF6TRhrncGYYSN+CM+hTTIdLzDb Xuhs4V0Ua8PJ0LJepbpxn/Grmswi68ibf+gWqdtms7urAcaUoR0WE7cRia45nDzsrX9J zmF3OPdi42xQjR0GiYB9bl0XZbz5YANX18cgJXgZkqRMhLcX4Rr6686uqvA4Z6+qtCOn aoesC1+UU/jvGIr0FCeX/au3JVrQZMtGDOx1I8qnFPgqX8b5qw2vgiylIw8gaxORu2Sf D2raqVJeONvDiiJPhP/XF8XeY1OKivIFUZMPYKhnZMDhPhfprXaCzRolgPkY96kwlSzg zzOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=SDNw5CeBEFA5vbuaWYRsJmiXk2Vn4f6I+fsRzDcDF5g=; b=XG7mRSV1hd5t8nDHB5gDKgQYB2G+Qff6mbyRqcp1d0orWNkQQWxeyIIZq8spoG5Z9+ 6YXufW8p5tV7iEPpqaH05KF4INIxQXoqf34n2YljMnKFEjRHXscYIr+uTe6iuRHxerrJ z8NgKj/BsPKBLiwphHHADx3f7+lAPgmBbnIYnTK/RyfiGOithYjBkClutqMcNKe+a3DH bm24flBY7ksCaHBFh+JBHnFsvJJXaf2iICgF+MA1i/hgqlwwDxX7+QSaa1lLlFVlWFn8 TqdQb9Pu6hXGoBGeWrreoCvzGzD4MF25k9BwfkO+aubD23MdfP+BvpgcfVPzoOaPxwGS UmsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="pZQzsGh/"; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f19si2975468otp.98.2020.03.13.14.44.09; Fri, 13 Mar 2020 14:44:21 -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=@google.com header.s=20161025 header.b="pZQzsGh/"; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727414AbgCMVna (ORCPT + 99 others); Fri, 13 Mar 2020 17:43:30 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:38882 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727064AbgCMVna (ORCPT ); Fri, 13 Mar 2020 17:43:30 -0400 Received: by mail-pf1-f193.google.com with SMTP id z5so6056677pfn.5 for ; Fri, 13 Mar 2020 14:43:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=SDNw5CeBEFA5vbuaWYRsJmiXk2Vn4f6I+fsRzDcDF5g=; b=pZQzsGh/c0WrWAiFM9UAZpHX38gUmWFqs+L7VOKADQYFP48cNV+2N6hSyfbbG/Pu4d twp6A7jNVhERqTTJ5pgz2tD8/ylTHXn0BFaHcWdrXF5ujuaE7tPCBLOgalpYgJL+gfvW p3BI9lLFF9I+Oy0T0+Tp10+CMuyBhahaFaQf56dY/SR40lJpiEBWd5cY4bFb7vHrn/MD Sw4ITSVRVoaM5PjQy6dJFJM7lxGDnV70uR3dqGKxi4v3ymoKHZo+c4PG+KVRruM8knLX 0Oz11Iq5/r4VcNXn0UFD6Ot+Bc8Jhpgk3FXSPFEEJ6o6Sjz5EHKbByKLqdRQICCh6mxc 1QBA== 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:in-reply-to:message-id :references:user-agent:mime-version; bh=SDNw5CeBEFA5vbuaWYRsJmiXk2Vn4f6I+fsRzDcDF5g=; b=owL4vWLEqjARx/4lMFRF0msVrfpBrukxA4KI4DQDhaFsgZb7B6NkNy/k+VPilHk7J0 yKZfbjUg1MgvI0m0YEwryrb+B4HOdy0quTkwRY7dqrIhAfd0N/2dzrYR1IgJ+93qBkLx eDKbmZbmM8+9hTYuMMfW49cDheEncTBhDxapEWDi8wr7VHM6t+5bnLRjg9kqZ2YBOaYI acteTSljA9wS/3OulCmXRLlULedRThUQBDwrd33KYW7nGptyob3X/U7FIrcyI9AnncUI JYXAthEwaieH03nfziHzUEWZL4gZEuEj70rSMU5P1UbdjA/llh/mwhwJiFtSZdENYUmf sIPQ== X-Gm-Message-State: ANhLgQ1YsGpUWHjGTh87DVPd7IDymV8i1hIBCLgVXaQ11Er34Q5fOFNh 0VWbXUnzf3LgKc5PM+aRlQneZbP7oM0= X-Received: by 2002:a62:7c15:: with SMTP id x21mr16494914pfc.132.1584135807311; Fri, 13 Mar 2020 14:43:27 -0700 (PDT) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id z17sm11256310pff.12.2020.03.13.14.43.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Mar 2020 14:43:26 -0700 (PDT) Date: Fri, 13 Mar 2020 14:43:26 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: "Huang, Ying" cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, David Hildenbrand , Johannes Weiner , Michal Hocko , Dave Hansen , Mel Gorman , Vlastimil Babka , Minchan Kim , Hugh Dickins , Rik van Riel Subject: Re: [PATCH] mm: Code cleanup for MADV_FREE In-Reply-To: <20200313090056.2104105-1-ying.huang@intel.com> Message-ID: References: <20200313090056.2104105-1-ying.huang@intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 13 Mar 2020, 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-by: David Rientjes > Cc: Michal Hocko > Cc: Dave Hansen > Cc: Mel Gorman > Cc: Vlastimil Babka > Cc: Minchan Kim > Cc: Hugh Dickins > Cc: Rik van Riel Acked-by: David Rientjes Thanks very much for following through with this Ying!