Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1368855ybh; Sun, 15 Mar 2020 01:19:38 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuagnLof7RnuCxpXAfDpALoxuzBdk2ixSG17iQpjiVqBcsr5Ok1v9q0YNOdDDCDKUmn1yFM X-Received: by 2002:a9d:10d:: with SMTP id 13mr18977409otu.334.1584260378121; Sun, 15 Mar 2020 01:19:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584260378; cv=none; d=google.com; s=arc-20160816; b=YKsNiq4/ZJoKY+UH3sJFw9UMrnzkrONa8S+mOGmhO3SOB5p9Sodr7jlUhYztA1rY7I 5hnYSI1i717OOB9Pw1k36eN2by0WO3FJ3XCSnzYL48xVM3VhvGY1GnlgO4q9kcblyDGV wU/+rEP4Y8FtY8KVArE0x8MHzOAHdJPj+l0qwBpO1Clhy1zc4Oa4hw4OaqtRi8v69wni LOcDOlOL0nDlagarKm+8ZRlteSWWw5B6LYMeqbB6/EoDCjD9WIo0RJWsRpnNbMlx9i3n onsjCm2Cgih280RcaWipBa7yI6f6OduJbdXlYIrXDLTQujODlVvs0LhMskJJ7M8CSTuG ZIfA== 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:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=bIdO2DD9SS58shQaI+L75kVmCFLCfvHKiwc1M49jAT0=; b=t9CNtWTVDfE0YhUP+DEIzU5qJTO6bL4BvANroSAIHgQEqK8T/7jLr1eQCOKZulZczm z8KNKwi4dJxVARFGHSMiSrhg1sIPfvFvWUv1x/+uzp1wMiXdC0l1Q08adNb8ZrhNHtW4 HZ5jKAxB7ycHU6Bhg3SZaLX3Kv1QCOANkn9h0y2Q9zJAodFAsTIR7KpuqQtajsxiH2Rn AlMUlxD1rHaDo4pP2WPo5crBXmyqj+6jGuuWz41uc3WxzJKwgh22ukUvIp9000TG7Wyu WTWFipwCsRKjC6PMfYsOzBexrEwrFrmIvj8W0ywHdTq7rQeVVsFPxvbZy9uTtPZoDqg+ vSOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ay+2V4sH; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n8si6694772otr.249.2020.03.15.01.19.23; Sun, 15 Mar 2020 01:19:38 -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=@gmail.com header.s=20161025 header.b=ay+2V4sH; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727779AbgCOIS7 (ORCPT + 99 others); Sun, 15 Mar 2020 04:18:59 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:55324 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727756AbgCOIS7 (ORCPT ); Sun, 15 Mar 2020 04:18:59 -0400 Received: by mail-wm1-f65.google.com with SMTP id 6so14278607wmi.5 for ; Sun, 15 Mar 2020 01:18:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=bIdO2DD9SS58shQaI+L75kVmCFLCfvHKiwc1M49jAT0=; b=ay+2V4sH5dFVbqHqfzxJ9qOQZ2y3OLeLccxpD0pfwtd9I+pBtYkK0mvCKX8x10Hdbe H7euB4kz2RwOyD2+mNxIl9ZWMXaNnwzjlAB910zZColpVhTHkKA+md8TYVkiY0V3QsOg I7b7BnYV4i5nsvi+qbiWFczXjFJPutx0H3AB41/Ah/XFJ8yKzx+fHV5yR85t1sEL8Fuu xeNco7xZ19VujSR1l980NIFyzw4FozakcEcNYj868N2UrJCOG6kZUjxqsyP2mAffcXbc V2J8iwPIuY7KkDwnXtGNo6frZH4rRcDzZyZ3Oo0BRauk3mZO/1LaEcYxbTXV1uREDBjf G4Eg== 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:reply-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=bIdO2DD9SS58shQaI+L75kVmCFLCfvHKiwc1M49jAT0=; b=KeivFb3seFMUHSnPbiYJTiCfBdBtfm1wVFC10Nk+80H9oSqQgwSkTR8wjOcjg44+6N qapCMnuw1UIa0HWiGuy/AS16yc3FvFXukeylPXDZuV/qOVyu6dZSF8mrJoNJSiVDNFG5 XvnbxBdGVgWADNpeqtqk17N7Wod/cLN6+3gFvHeN+FgaBN+At3iIZk+0fuLkZGjYzrzl i5tbeNynNe7RkyMuwhQGKcQ7RCR6XXFT1mNZdFf7VBEBeEtnV7/E1av9Ax2zmmqPnZRb O4oRh8YX7o69QxpRf9MqHg1zwzoKs5kImFG6ilaXPA/QEQSIw6tbLfBijaKSfsoKYwyP 6Ucg== X-Gm-Message-State: ANhLgQ0EY42CEreSjurj4b6H0mpTZC86Fywe2mKqxDqwXyGWXPBnGJo6 CFmjHM2YKJyjCB9H15+LVys= X-Received: by 2002:a1c:b144:: with SMTP id a65mr16208631wmf.54.1584260336166; Sun, 15 Mar 2020 01:18:56 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id b4sm1349519wmj.12.2020.03.15.01.18.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Mar 2020 01:18:55 -0700 (PDT) Date: Sun, 15 Mar 2020 08:18:54 +0000 From: Wei Yang To: "Huang, Ying" Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Dave Hansen , David Hildenbrand , Mel Gorman , Vlastimil Babka , Zi Yan , Michal Hocko , Peter Zijlstra , Minchan Kim , Johannes Weiner , Hugh Dickins Subject: Re: [RFC 2/3] mm: Add a new page flag PageLayzyFree() for MADV_FREE Message-ID: <20200315081854.rcqlmfckeqrh7fbt@master> Reply-To: Wei Yang References: <20200228033819.3857058-1-ying.huang@intel.com> <20200228033819.3857058-3-ying.huang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200228033819.3857058-3-ying.huang@intel.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 28, 2020 at 11:38:18AM +0800, Huang, Ying wrote: >From: Huang Ying > >Now !PageSwapBacked() is used as the flag for the pages freed lazily >via MADV_FREE. This isn't obvious enough. So Dave suggested to add a >new page flag for that to improve the code readability. I am confused with the usage of PageSwapBacked(). Previously I thought this flag means the page is swapin, set in swapin_readahead(). While I found page_add_new_anon_rmap() would set it too. This means every anon page would carry this flag. Then what is this flag means? -- Wei Yang Help you, Help me