Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp351761ybf; Thu, 27 Feb 2020 22:48:37 -0800 (PST) X-Google-Smtp-Source: APXvYqyHlPqNJiYu3xpgIUOUcU6szd/s+EZS60kF4ZGm+E+ULK+lD4JpGTPkHIzTBv3nzTHXF7rx X-Received: by 2002:aca:f40a:: with SMTP id s10mr2159164oih.61.1582872517069; Thu, 27 Feb 2020 22:48:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582872517; cv=none; d=google.com; s=arc-20160816; b=WIAq0zH0cJJwtgXKuI+USIUUoLGh7qxi9+kf9+YkqeCKF/d2qRhvL/hwUWs/IMIu4N XkoPIYH/zyxVfgF0i07VROVMv7xGATc/8kt4exg3pvaPf6k8BAaD3QK6nHQMlNRhhtXh zZkgM0Txc2d700dLfS7S8jNvP4fEahPT06dpKI+3knu1swNP4TKHXqkuwslyLv8SX1c4 JssdR276hRR/NdDg+C/0+K5YpBqQ7rOxl2ymO+rHenFm83k0/YDKATzpe8LYQ6zAZ17r gULlbrzV5jc7agttlWZcf7KMGHQ5zY6gc0PdVWom7aYOLkJXgEYLSOaRw5RzEOyB1+T7 +k+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from; bh=AtyTcbBHnsOAaVdie8p81H3Y11BnXXcxT5xd79m7cxE=; b=pEqRDcXDETZAnxy5AgF0pjx7Yl5Rg6uLHMyDcCnzAeSFHI2+DITwW9H5lgt8/UAPxZ GUbYK26vpNbPvH2aa6RU7u0QFAz8Tkkl4kNjz9722+lgxZw72qz+TWTILFoTRG/yPX/m GL8m5pRqU8HK30zheHtvog3MgFlUYAnm8149juj0sU9O0WYdfXlARXdxNBmYK+nwgjaN JKjZ/WVVyE1VX7uXgpnVqjToOnExRWbipiAic+mCYX4RWL9W1pZgm/XjjfyEMn3HOP0X OeNfJG9Pz5QheAiplZ+7zGuV+9Fd+odsyvE+zFwP8k4UP0XXSKI2iLM10w4fEJhRbk0J KvPg== ARC-Authentication-Results: i=1; mx.google.com; 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c14si1104891otn.118.2020.02.27.22.48.24; Thu, 27 Feb 2020 22:48:37 -0800 (PST) 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; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726785AbgB1GsB (ORCPT + 99 others); Fri, 28 Feb 2020 01:48:01 -0500 Received: from mga11.intel.com ([192.55.52.93]:33925 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725862AbgB1GsB (ORCPT ); Fri, 28 Feb 2020 01:48:01 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Feb 2020 22:48:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,493,1574150400"; d="scan'208";a="231018405" Received: from yhuang-dev.sh.intel.com (HELO yhuang-dev) ([10.239.159.23]) by fmsmga007.fm.intel.com with ESMTP; 27 Feb 2020 22:47:57 -0800 From: "Huang\, Ying" To: David Hildenbrand Cc: Andrew Morton , , , Dave Hansen , 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 References: <20200228033819.3857058-3-ying.huang@intel.com> <0C8CC772-5840-4F0C-9859-C1D7B8BF6025@redhat.com> Date: Fri, 28 Feb 2020 14:47:57 +0800 In-Reply-To: <0C8CC772-5840-4F0C-9859-C1D7B8BF6025@redhat.com> (David Hildenbrand's message of "Fri, 28 Feb 2020 07:13:33 +0100") Message-ID: <87eeuf8axu.fsf@yhuang-dev.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org David Hildenbrand writes: >> Am 28.02.2020 um 04:38 schrieb Huang, Ying : >> >> 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. > > This patch subject and description is *really* confusing. You‘re adding a helper function, not a page flag. It‘s a fairly easy refactoring. Yes. Thanks for reminding. I will revise this in the next version. Best Regards, Huang, Ying > (Adding new page flags is close to impossible). > > Cheers!