Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp7215563ybf; Fri, 6 Mar 2020 12:42:34 -0800 (PST) X-Google-Smtp-Source: ADFU+vvL34tyHOh/40LUPc1JObpl0pCX5/jPzqMz09CH8qlY0N+4ZMKZvN2fX3ynUTEQMlvvTjyb X-Received: by 2002:aca:ebcf:: with SMTP id j198mr3792930oih.115.1583527354113; Fri, 06 Mar 2020 12:42:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583527354; cv=none; d=google.com; s=arc-20160816; b=OVE8ZrPkmWivx9GoPvQre5GH6qh+Mw6E+TGdlsqo3kHvIflFAaEKHgH6FQuQ9Y3O3q 1sUFwt24ki2NAwnGpLHeFwHkvAg+iblFlTfe1rThH+eSJ4OsdVSwsOt8XsFxftPtkzYD ZrLRFRKR+eeiz9HSAKhxgtmZ9rOk5/2ESIAGZq3h9Qi7AUzWJn5dN9VAsA+YjqIKQtlg 8ne/Oju9IqnLqtryNmA96IAiRuD3XFzoe1FYtri46a7EiV11KFLsv5bZoXCAW/zo3TBT pjmK2B6AK8ATQlD1MFiIOvqrUmOe40FSGJRofh+/b+jXhseKPpyRSH2ymCbN4RalE4hT z00w== 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=yKGKapuUKILEkemnrbPssWUGiqebVX3yxGAYmrDS0Sg=; b=pBxMawl0lYVLzm0spDiaSNPN1IbjhLU7HQf3Zpf2wLKv6Bd3cYoxNxoVOynnb8p85w +1xxBp91+LIRveQQDeVQ/gYbg3qKCh3utSlRLc5e1HwfOXsnOAVNdrnYlOSDy0D8f+Q6 ntHv8dKqZDhNa0WWaN8MnG0IIY+l5EEAa8zTMItQaNnf5kTr51W0hxzoQ+aI6+0OqcHa CZf3pBulhBml1hJYrZZemTsIRzu2gTFDNsiuW8asXFP+PiNudbCvbVksOb2cqI2Fs9Mo 1qXCa87BtM5i4Rt84E/Ec69Sg6/AsfCObar0AOzw5beKx+JccOq39Au5B+V8FnZcvi+S 2htg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="B3cs7k1/"; 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 e7si2255441oti.301.2020.03.06.12.42.21; Fri, 06 Mar 2020 12:42:34 -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=@google.com header.s=20161025 header.b="B3cs7k1/"; 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 S1726231AbgCFUlg (ORCPT + 99 others); Fri, 6 Mar 2020 15:41:36 -0500 Received: from mail-pj1-f48.google.com ([209.85.216.48]:40559 "EHLO mail-pj1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725922AbgCFUlf (ORCPT ); Fri, 6 Mar 2020 15:41:35 -0500 Received: by mail-pj1-f48.google.com with SMTP id gv19so1575878pjb.5 for ; Fri, 06 Mar 2020 12:41:35 -0800 (PST) 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=yKGKapuUKILEkemnrbPssWUGiqebVX3yxGAYmrDS0Sg=; b=B3cs7k1/pc/ZT6R0YkOqeR/COPust1J58A0q4JvjPIJmnA5mqdan1WT3Oi+jBKHIZj F5Mwj0aJKIc30RjRue2vWDtOFkFsGuoRcTyGv5/NcKRndUsykBSqfjCDdzhUWQUpW6c2 RwGw2xSl+y0hVTPcJ11srTPOSOOmoJpWvLgEk9gkpz+m4VwSpI/FGW3eEIQPWyJdhUGR vBwn/KLTBojdpHoTufUudUxq6zr0bLih2tquszsygTjbcA91HPkJ10WH4tYrDTcM5Dzw vtAzWaWenEZcU3NrBiYCNeE+Hkrdo2Egh1Zfx7L/41inETAYdEXr3TCWRlCyfihyRpai qTsQ== 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=yKGKapuUKILEkemnrbPssWUGiqebVX3yxGAYmrDS0Sg=; b=JaWJ17PCUvYtdiA51/jfELnjPNYCaPd2fJ3SZjcsxES7ILu/zVNmlXlPDpGUSjO0eR t3nCcOOwesgRdaKQmNMNEYbU2Q0/ixHK6uXHwe/7UW1rXNs/mgTHjWBH0LkGvl+ugJHj 6oDai2ivKFyoVRnJSowWx3Nr8VLKvyx8kcRIy0TKGrtPl29btIYd0Svp7mZ836+vloGr Fv8Cu+djFmAdBe9Ww6Kg4yc7E1Lfbj3eK/OW30ycWt+XwTeqhMDVrPZ8pmFgvfiNjlW3 FFWFCTpqzwu70I3rmDJ0rqgIfQoGA3BM3khMvxmPK3oZhnVypzAgJ/YaXcaMsmsO0HTc BmeQ== X-Gm-Message-State: ANhLgQ356kuDFKFPIHdr0YrAsZnQso72nqzcOu4ATFrzq7cunFbcmrkG BtAFCD/jA48hxOW6L+8C014DSg== X-Received: by 2002:a17:90a:608:: with SMTP id j8mr5243607pjj.85.1583527294240; Fri, 06 Mar 2020 12:41:34 -0800 (PST) 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 m9sm3252334pga.92.2020.03.06.12.41.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Mar 2020 12:41:33 -0800 (PST) Date: Fri, 6 Mar 2020 12:41:32 -0800 (PST) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: "Huang, Ying" cc: David Hildenbrand , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Dave Hansen , Mel Gorman , Vlastimil Babka , Zi Yan , Michal Hocko , Peter Zijlstra , Minchan Kim , Johannes Weiner , Hugh Dickins Subject: Re: [PATCH -V2] mm: Add PageLayzyFree() helper functions for MADV_FREE In-Reply-To: <87y2sf1ki1.fsf@yhuang-dev.intel.com> Message-ID: References: <20200304081732.563536-1-ying.huang@intel.com> <87y2sf1ki1.fsf@yhuang-dev.intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 5 Mar 2020, Huang, Ying wrote: > > In general, I don't think this patch really improves the situation ... > > it's only a handful of places where this change slightly makes the code > > easier to understand. And there, only slightly ... I'd prefer better > > comments instead (e.g., in PageAnon()), documenting what it means for a > > anon page to either have PageSwapBacked() set or not. > > Personally, I still prefer the better named functions than the comments > here and there. But I can understand that people may have different > flavor. > Maybe add a comment to page-flags.h referring to what PageSwapBacked indicates when PageAnon is true?