Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1541232ybh; Sun, 15 Mar 2020 05:23:01 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsFikWkiptWN3fcQhQgehdPMhX9bYKAXXDcETCHnx9whISgw005kz/12rRDYqcB5clXm14L X-Received: by 2002:aca:bd0b:: with SMTP id n11mr6044436oif.90.1584274981422; Sun, 15 Mar 2020 05:23:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584274981; cv=none; d=google.com; s=arc-20160816; b=Qdq2/5xWXP1GTX1XbXlnJ78TlmsJIqdKJ9CbXTq34WHs+FlAkLYUemFk6nVEDBwasI d0VMQ2H01REqj5EUQOe5UbDODOTjpRHdoAsXzt/l8aFip+cnYJae5rHo4aOKAsJgx9MF tpMSiLjZG6oXZqBcIuXPteMUcV6sdvVfwOKq781oV696QTrn4+mZAVMVRsaqnFLfv4df ggNqgTdVMYvjWymPCjn8XWlPMZYdYHBhSxnq6C661OAc3hrxZOiQVVRxZJ8P2GzNuEfv szx5J6ZPuZ/7vqIAqBLU0EvbtKp+atOwbt7fFocMtgIcxdjHj4cJ/BRE60KiB+oUUnr2 zlvQ== 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=/Kx5mSt5kBh7FsLH+0N/pfeCSX6lxtBaeY/mUDaY9J4=; b=npJeaDNp0rt18y6exNksJ8RFwI5XoSTSOmYdE+RE+AN3JueNACnGzOH6is93n2L+ew z2rnl1M/h062Iaw5lCrBk1APBEPwdkxEJTWu+HTL8oUONBt4iHHG+zYbufmMjt+mBXpF rf5EyPUnkUiByOPM701CByisYqXjauulQj7vhD6FIVcdviUhyoWODBAY5QrQoA4FFzlW XK88fhkfd2OoRfXJw8Mn/EKDcU72VPgxaaMCoDF5SP5XQerCdzdjd6TpOCvv26l0v9h2 pT9pomiYIr6Yz7g5SkRrZKdzulTHRuLRhyxuzkBPxT6hXAI60Xys47CGBt+cHHXDoe7/ IU6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=chYAt6y0; 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 b197si7579759oii.198.2020.03.15.05.22.49; Sun, 15 Mar 2020 05:23:01 -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=chYAt6y0; 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 S1728510AbgCOMWV (ORCPT + 99 others); Sun, 15 Mar 2020 08:22:21 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:39333 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728480AbgCOMWV (ORCPT ); Sun, 15 Mar 2020 08:22:21 -0400 Received: by mail-wr1-f66.google.com with SMTP id r15so17766812wrx.6 for ; Sun, 15 Mar 2020 05:22:20 -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=/Kx5mSt5kBh7FsLH+0N/pfeCSX6lxtBaeY/mUDaY9J4=; b=chYAt6y0eCvcUVZE3gi3UBUzNUzKL+vQ1CMKCFG1y5sNExXx+3T8iGg0e83kjBmxrm YWmLFF335HRNA7cfnN7z9efqWMpah8o9G5+f28jKF1e4G4yCwB83Q2nieWSKqsz8zf4f +WtQUcWBgizHrzbXLH6FYcUPSIulaR8QifpA6Hn8IoGSYYJMBfR+tKDtX765FwgXq93R PX67+DjGRSnNHhNZYg0a7qjblj627lIvZ6g/JDDcMXNWzIP7GqbemQvAsJP4stqJEv4s pH+LeEsvuP8ljdQg0TjWtOVX2zyy5XDMgasvecY67rK/oc+2X0CrzzzWi9WkG/amCziB 6iow== 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=/Kx5mSt5kBh7FsLH+0N/pfeCSX6lxtBaeY/mUDaY9J4=; b=qJdqq2N44mNGqNro1ZgB3WTOJvgGdRBTDMPjYxCvDycwDmeO7Ky9oxW4fWRbNUxMsf aj0lXnNHP8mKqaWCohHvvUdeyb4OZk9XkX5MhVHxWa8cPNXFv/dWdaA08K064ZVdzjdQ 92kXsfcKsDvR3+/dTp/jbYxnT6OkAW2kBo8mXrgUBviqIPyMoWCcRgKnJ3rp7BCaSDxW KBwZhLA+K+qXmJSIzhGvZbKd3Y1zX7jovsgsFJaCMHlZ9A5rCs5uT4siHPEOqOlIke3c 5lh+rn7hrVq4o8qt8PUejt8Oh+ljruL98YdJTXqa+6SrnLdwd6kjbOPrTvPuwZZ/4qct 5teA== X-Gm-Message-State: ANhLgQ199SLudcxtP1OMKUBey9Y4yK3GQCdrleqrhpM1Bj1+2lbGet34 FdrAS30dSDHc5KuVhbygIc1pW1ES X-Received: by 2002:a5d:6a8d:: with SMTP id s13mr29885645wru.260.1584274939361; Sun, 15 Mar 2020 05:22:19 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id x16sm23743836wrg.44.2020.03.15.05.22.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Mar 2020 05:22:18 -0700 (PDT) Date: Sun, 15 Mar 2020 12:22:17 +0000 From: Wei Yang To: Mika Penttil?? Cc: Wei Yang , "Huang, Ying" , 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: <20200315122217.45mioaxzuulwvx2f@master> Reply-To: Wei Yang References: <20200228033819.3857058-1-ying.huang@intel.com> <20200228033819.3857058-3-ying.huang@intel.com> <20200315081854.rcqlmfckeqrh7fbt@master> <92d4b0fe-f592-8da6-0282-2ea8a015b247@nextfour.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <92d4b0fe-f592-8da6-0282-2ea8a015b247@nextfour.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 Sun, Mar 15, 2020 at 10:54:03AM +0200, Mika Penttil?? wrote: > > >On 15.3.2020 10.18, Wei Yang wrote: >> 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? >> >> > >But not all PageSwapBacked() pages are anon, like shmem. > Yes, while it looks shmem is the only exception. I am still struggling to understand the meaning of this flag. > >--Mika -- Wei Yang Help you, Help me