Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp159371rdh; Wed, 22 Nov 2023 23:23:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IEfSR7LAZuly3jwvxmCD4J5+fM9Qx7S8GLRjygQlPFGOYn5zpU156mzKDAM+5qI2UkdOsLe X-Received: by 2002:a17:903:1c3:b0:1cf:59c0:7df5 with SMTP id e3-20020a17090301c300b001cf59c07df5mr5390433plh.32.1700724202726; Wed, 22 Nov 2023 23:23:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700724202; cv=none; d=google.com; s=arc-20160816; b=MNIrGMa3kmHaxaDEgZwkez5YmVL6t6lyCDWjvRBHdSmeypByF8gDar+GcQkw8fmtdV 9PoSMpTV9gMLoCHjv+PTvMZN9KYizHJZpPQL7nRDznQDFW83hVbQr3M7UZQIc2YeCRn3 /NEr7mEUm3N1xuU17m/gb9na5xDyBnadfo1cxqTjosNnySohvWIhHOvsArmEdDiv4FN1 D/xfDHB3Xt175iuUYsejfQBneac4Cry7Sdsg++eFjhb3KrOg0NiPJ05npHOgfsTwWtt5 lgAvbqWoyM0FwmDtGsKFhH7myYu92YKMja54itfeSnu8uHc3a22yZNjo0qtr0rGhqmPt Y7Rw== 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=e4PsA32ksarbTD7FwELk4DnKSQW5zZP32H8oKCdWKrM=; fh=xlRG/ctwqmTme5HrOpixOFf1E0Ug1ecqWpxpTddbOOw=; b=V4zQ2WHB9Znf2ekCuGN84K4E/wxEoesXgeqmrvdUeii0vphSgHCf8CndR3oztpAcUK 4QZQA2ppz/bMLJuDKvUn8uoujRd3N6rrMVCDfpllOY8gwh8vXued4yTr5qW2m/Ulb44R oxTHAfZ2TZFgdaxyU1Z2afnZNU9KzNgBaJ5KVfsydrBKCvAokokvM77mbJLvmqZZthch vMxfM9HQxiAMqqChoIhd5Gr2l7m8iIvm4f7eOwBgZ5Y9T26IYbJKtKAd7ff8p2TBANcI fqKjAfOoo8KU63+AonwK7s7iUP21IGbiAJKq5DxnT3YXhXGCG8RPHT1CrkXj2+s/sn87 j+hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=pDZax++h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id f14-20020a170902ce8e00b001cc665df825si617372plg.436.2023.11.22.23.23.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 23:23:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=pDZax++h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 3F4708077504; Wed, 22 Nov 2023 23:23:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231127AbjKWHXF (ORCPT + 99 others); Thu, 23 Nov 2023 02:23:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230044AbjKWHXE (ORCPT ); Thu, 23 Nov 2023 02:23:04 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FD44C1 for ; Wed, 22 Nov 2023 23:23:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=e4PsA32ksarbTD7FwELk4DnKSQW5zZP32H8oKCdWKrM=; b=pDZax++hGn2oV7FeSHRMOIMDez PdAkuhzOZ7Ps3CEUik8v/nResbjuMDIrqHSjjWmlrzx/g7Da7k7sFjOROK+u+x3fuLR/gg8D/xr7t ps1Gxsl25FufRHCafTHyC959uluCLFssTDbonxtTH4eccPW1J4u9034b0xCfuMadBCWDLLsrVnFTR CuLi8ZUmQi/0FGPLY9nnLyQ4Pmx1BgiKE8Z8olpLxpsPzTxA4VaQE6+sUImHjvWOEvtWTXgSTnKAL LqfyOteHizswnpt+nAYQSsLjiIob/Hfu+HhKcijO7nT8I4MBCUPlB0ZXZUX/QMeaH+cUem8M0zWvh IHctsZkg==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1r643H-00417G-2N; Thu, 23 Nov 2023 07:23:07 +0000 Date: Wed, 22 Nov 2023 23:23:07 -0800 From: Christoph Hellwig To: Peter Xu Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Mike Kravetz , "Kirill A . Shutemov" , Lorenzo Stoakes , Axel Rasmussen , Matthew Wilcox , John Hubbard , Mike Rapoport , Hugh Dickins , David Hildenbrand , Andrea Arcangeli , Rik van Riel , James Houghton , Yang Shi , Jason Gunthorpe , Vlastimil Babka , Andrew Morton Subject: Re: [PATCH RFC 01/12] mm/hugetlb: Export hugetlbfs_pagecache_present() Message-ID: References: <20231116012908.392077-1-peterx@redhat.com> <20231116012908.392077-2-peterx@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231116012908.392077-2-peterx@redhat.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html 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,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Wed, 22 Nov 2023 23:23:20 -0800 (PST) You're (thankfully) not actually exporting anything, so please don't claim that in the subject. > pte_t *huge_pmd_share(struct mm_struct *mm, struct vm_area_struct *vma, > unsigned long addr, pud_t *pud); > +bool hugetlbfs_pagecache_present(struct hstate *h, > + struct vm_area_struct *vma, > + unsigned long address); Can you just follow the much more readable two tab indent of the function above? > -static bool hugetlbfs_pagecache_present(struct hstate *h, > - struct vm_area_struct *vma, unsigned long address) > +bool hugetlbfs_pagecache_present(struct hstate *h, > + struct vm_area_struct *vma, unsigned long address) Same here. The new indentation not only is less readable but also creates a pointlessly overlong line.