Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp328672ybf; Thu, 27 Feb 2020 22:15:35 -0800 (PST) X-Google-Smtp-Source: APXvYqx9O73ULVfqbljKXN7wl0/t27UCak8mdkYsj3U7f+2KhQoBWz++xGn7f4x0qK89JtKCCx+6 X-Received: by 2002:a05:6808:902:: with SMTP id w2mr2091945oih.170.1582870535201; Thu, 27 Feb 2020 22:15:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582870535; cv=none; d=google.com; s=arc-20160816; b=L3mOUsr1aly6GdCzIhOlL5kZ1C1MwslMq61bmbHO7bKMK4nKiSqWaJDjy++3I6rKok mqHvKLMbGT1yx5U2whB6eYnA9AMr8QdPF4ZxfFVWNI6Fzlni3L67LyMw5w09O+Fdj2Q+ 0h4K1L9ezpGkgxug17NTbsV5FdnvtLecA0GMq459eWyFfkKJ3JnNqeF0+HwOY3HXcPco zegHhIPkzy1n8P8akHQtvRIT6XYSXzpp1ReO+Yd2KgFN8hg/urckAvK7X48kidY1jShu 2FEK5uqNoXeKbKwnkXAbExJiczBU1/+SN9nXnx7a3GdYM/2/HJi4nC/kURTCHvEfxTAa nrsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=bQZy9BsnvGs4DJv5PXGxTDbanrd6o8j4AgcuAD33/N0=; b=BmJly1UTWnCJHK2gvxmB1v2GNOVTpW2lj/WmykNuBLci6gzLkkBdUnRLvoV4rnb55S VQuxkmqlcyWM19jU823Q4RUuDOCCiw/MzDhCy35G3UBFvAdDHDk6sAmbOfErXnHEWdRa /7/yjGyyec41642OxU143V5jMsA8nUY73HA6FjQ+fv87dH3ZlSNg4ie1lSFl6OoPStEx VpiFLX1ngJpnxD5/fNg7GcmeSO0zDNHdWjaVrYoz435RPVEvMclZhhy9cC5WU8+tZc0R DmknO7jsYdLXDWXZV9cDItwM1A60C05BeTnIf2Myaxfaqd6A3PKcL0rcyGG1+ag+pjZv KI4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gL0eJDOl; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f20si938321otl.313.2020.02.27.22.15.22; Thu, 27 Feb 2020 22:15:35 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gL0eJDOl; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726785AbgB1GNo (ORCPT + 99 others); Fri, 28 Feb 2020 01:13:44 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:36619 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725805AbgB1GNn (ORCPT ); Fri, 28 Feb 2020 01:13:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582870422; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bQZy9BsnvGs4DJv5PXGxTDbanrd6o8j4AgcuAD33/N0=; b=gL0eJDOl7vlHydvzS5K977amjwoLSuIk8HVsK7iIh9eIQQJtlBPIdLnursLB05zRYZTCKT 5uqK/hWKwEey9p4RXXxI6PGLVHpgdTzPXJzNHtC1wWvI+/2Pe/m7RnHDSa3waRHYaqGh40 JcvXxyzInXwS1ECKfz8p+XGcPsJ7fAE= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-196-_OK5fbG8OAS5AcWh7nKAPg-1; Fri, 28 Feb 2020 01:13:41 -0500 X-MC-Unique: _OK5fbG8OAS5AcWh7nKAPg-1 Received: by mail-wr1-f70.google.com with SMTP id w18so901958wro.2 for ; Thu, 27 Feb 2020 22:13:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=bQZy9BsnvGs4DJv5PXGxTDbanrd6o8j4AgcuAD33/N0=; b=BXTswqCSAX8UEIgC3eZ96qj5IpvBJWzywRlYJ/yn+SS6zbPWwnqv6qQGInza4waj2q sOtf7JsE4rpqHNIkaqdAxhbtlgZlhikU49Pjj4iGrM2dF8WVMU2s8qTKhIo1/S2ZdVex mxq/FxwW3a9gB5XJYqVrzezUFhZnKnVLCyKD3vAvUm0rYe+llhWxCgdK56QvQnYV2eGa DeWU4k6tlcbdDntq5TVCWS6rajsXdQKZPzAKfrgpYf9TnkYhYdxwkJYrGkwkR5FFaOxc 0swxWdniyledfxJKhanqNQMuRbAcQcj1jI6F0MANsE71eXHseADMbF2zuQg1+naploIW Kwjw== X-Gm-Message-State: APjAAAXs11ptvbcnWwqIZ0iQItyTclfqyGvjw3ODE2xqq3p0gFZbjVyY Z1sqxq9Q1dN2iakvAJLSHVt9UyxjO07ppGOcXdxK23gQJVdOIIibQWv2sp36apoC7RqDrWQ40f9 q0iZKn2pawVxYpmwSCe9649EV X-Received: by 2002:adf:cd11:: with SMTP id w17mr3255777wrm.66.1582870419889; Thu, 27 Feb 2020 22:13:39 -0800 (PST) X-Received: by 2002:adf:cd11:: with SMTP id w17mr3255756wrm.66.1582870419682; Thu, 27 Feb 2020 22:13:39 -0800 (PST) Received: from [192.168.3.122] ([91.12.99.244]) by smtp.gmail.com with ESMTPSA id 25sm682892wmi.32.2020.02.27.22.13.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 27 Feb 2020 22:13:39 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: David Hildenbrand Mime-Version: 1.0 (1.0) Subject: Re: [RFC 2/3] mm: Add a new page flag PageLayzyFree() for MADV_FREE Date: Fri, 28 Feb 2020 07:13:33 +0100 Message-Id: <0C8CC772-5840-4F0C-9859-C1D7B8BF6025@redhat.com> References: <20200228033819.3857058-3-ying.huang@intel.com> 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 In-Reply-To: <20200228033819.3857058-3-ying.huang@intel.com> To: "Huang, Ying" X-Mailer: iPhone Mail (17D50) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Am 28.02.2020 um 04:38 schrieb Huang, Ying : >=20 > =EF=BB=BFFrom: Huang Ying >=20 > 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=E2=80=98re add= ing a helper function, not a page flag. It=E2=80=98s a fairly easy refactori= ng. (Adding new page flags is close to impossible). Cheers!=