Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1585872rdh; Mon, 25 Sep 2023 18:37:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFgE9gMHAlFzm4bzHBtN9gadtuSdLe+Ew7a+2ZXGGMuwAEq/y4exsWO4nbHrmMyhbI6H8yN X-Received: by 2002:a17:903:41c9:b0:1c4:5a9:a45e with SMTP id u9-20020a17090341c900b001c405a9a45emr1943317ple.27.1695692233117; Mon, 25 Sep 2023 18:37:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695692233; cv=none; d=google.com; s=arc-20160816; b=pEi/pk4m7t6th4GADAuySWTeIL71HVVjhJWIKV3LYX7RaW3/J1+IQYpUgstjGyNpMe Q2dOXToK56pVSAg5KNtc5R3OUsL2AKWaAcu1Vp40ra1hZRFECvWh8n7smqNDegRB5nRQ 63NBkHUqsm8LPDZbuuV1dSv+g/YnrEVenl2G0i/Ec7pHPPuD5E3N+KMvmyu2PzmgYLOo QKWs7RIavUPC/OYV4a4w7UwoJMnokO5GFFixPD2d11Z7pgwYcIlV4M468yqCYV+juH9v j4SJ7VkkYyiW0Li8DFTUxSHkVf7QhYQ7R+OjQE/Sm6ayNOkZeJngC0bBHvWpoPrkrCxB /LOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XwCjcncnJ5ZxZIUi6jjYCedQryoBULwBfDgkVT6PDZ8=; fh=Yibd+6efQ2NbloUNqjhUgqChaOBGlXVnr6VE1C45OVo=; b=08vSxee9/8Evxz9Nn9vqwBwSa0Aclb8pGUXeXyeSi08PByz89J9jqxSwVmH3JZ6uuE OqDnS80RGUkJG1zUK/xC4eZeEw5umOgdQH/T4B/8xgos6YDrISHc0kqX7M5DfkiZHiI9 1OohYZS0VPiGDMzCO6rrNK9z1fN5QtyVW9j+DJDIA6F7GuWSUAmbppVbXJEQB+dmsp/i xxw1449JqjLNharAciPgtzucndQ+4PJ54Xurl6dSZZA1osQNMCHW0VtV1GznY36ncCol /MTqJNeZ991FFVPGnSawmsnd6OSoCV668C55YwIESJZ/peRAX2edbrJhVE+50TTeKwd0 lgQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=K0VyEqlp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id x18-20020a170902ec9200b001b7ea20dbf2si12038408plg.224.2023.09.25.18.37.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 18:37:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=K0VyEqlp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id D9FB58080C63; Mon, 25 Sep 2023 15:58:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230084AbjIYW6o (ORCPT + 99 others); Mon, 25 Sep 2023 18:58:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229585AbjIYW6n (ORCPT ); Mon, 25 Sep 2023 18:58:43 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28D2B101 for ; Mon, 25 Sep 2023 15:58:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=XwCjcncnJ5ZxZIUi6jjYCedQryoBULwBfDgkVT6PDZ8=; b=K0VyEqlpKIUcb2s2ECR+gWwU3f K0R/AOu77KZXhWs1Pe0jCYCUqt1Pj42flLAciC+v+CLJt34xmR0PG884riCWfyqVhjCZFONwni9Ls kZs7kCMxQ3m/EutNC1eVjka01AruF7G7/8yrOrnipePwRYFwkWkLumMF4RrAYdxn4WzQGD7UaG25x iC+AR/0lbjoaYISMaIX1aRcCHWkdCmIS4wU+cf/hSKqmZE1tO6TN8Yizg59suEIKO3vwDg6DmOxSt rAl6GW/wol4im9XzL1kJ1Fd3gKp4ayblZAIavwv+xCgTjCRqPNGzx+pCj4TF1PMOrxZyQr44ZUO7L wOkrmtlQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qkuWz-0048m2-On; Mon, 25 Sep 2023 22:58:21 +0000 Date: Mon, 25 Sep 2023 23:58:21 +0100 From: Matthew Wilcox To: Hugh Dickins Cc: Andrew Morton , Andi Kleen , Christoph Lameter , Mike Kravetz , David Hildenbrand , Suren Baghdasaryan , Yang Shi , Sidhartha Kumar , Vishal Moola , Kefeng Wang , Greg Kroah-Hartman , Tejun Heo , Mel Gorman , Michal Hocko , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 09/12] mm: add page_rmappable_folio() wrapper Message-ID: References: <2d872cef-7787-a7ca-10e-9d45a64c80b4@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 25 Sep 2023 15:58:44 -0700 (PDT) On Mon, Sep 25, 2023 at 01:32:02AM -0700, Hugh Dickins wrote: > { > struct page *page = __alloc_pages(gfp | __GFP_COMP, order, > - preferred_nid, nodemask); > + preferred_nid, nodemask); I really prefer not to do this "align arguments with opening bracket" style. As long as they're indented enough to make them visually distinct from indentation-for-if-blocks, I find it annoying when functions get renamed to something with a different length and somebody then wastes time reindenting all the arguments to match. > + return page_rmappable_folio(page); I don't particularly object to the main thrust of this patch. I'm not sure I like it in huge_mm.h though. Maybe in mm/internal.h? I wouldn't want anyone outside mm/ calling it.