Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp24170rwb; Wed, 9 Nov 2022 19:15:30 -0800 (PST) X-Google-Smtp-Source: AMsMyM6qAsmZ/Mhvrwf460UhrDuNL13MPDZdculOd9EFvc03VPOblRZMgaz0LoUxikTQKkzrgf9N X-Received: by 2002:a65:58c9:0:b0:43c:6413:322c with SMTP id e9-20020a6558c9000000b0043c6413322cmr1665836pgu.472.1668050129867; Wed, 09 Nov 2022 19:15:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668050129; cv=none; d=google.com; s=arc-20160816; b=MSS7pGe3TiVJrgYVHW6tVVd6GhmGvv0hjtBT5PHybS1dkqXVJZ3mEVG8hcBnTIhUo9 BnzYEKrWaA+Ud4//50hPnLbZd2R9yxivi8dP79xyXcuvPCJTlHRD4PqAyg6C2bkdwLx+ 68JiEMLHwWhBdNYI5ojm3mQDE8U6pJouop+oSwT5OfW+sjm5qvBGWvrN65C2rN9RQ3oX QmOyhbBS9yj39snuWQLhKWz5TgfR3WlFAvj8EyDoNygipEznIdrU3HRTPkB878VPVRd5 VyURBFHqYCcgjJBi42cxJXJKRta19VWdgJIy3t3xG/JIknsM1dj7xC+98K78fOC+GkZw zuBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=zPoVaZI3+eUsBLgHzkw8YZRMFuPpzhPKpLA9H61td34=; b=hrA8+UcKX7JWr5QykJbCrled/dbU8YPeGH2VDgztQvWf8Eb4RM0ESoI31leYzFUB7b rF8IofCexj4VcZ07ysPxZs2sBVmmmIzz4y7bCOqyOvnWkaVDQqdFY0ZidXgqLEJewscr zeBxUdWYYMtTJU2h3lVmuv0JcFW9ZKtVXMmG9dkFioJUlJyOXZ1I3rpaiVo8AdIa1gDE oUtKiHDyz5DEr/FftvaJOuzHAhaZI+Bl724P+ygag5dl1pEqCa0+2D64AEBVfYIPNd1i GreV2iyUuL1eAr3TRIvFHI5og8ytc+w6I5lxl/4CaZ3IGS/IH9yha7Dnm+WX0lXaPfx1 d1yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ckQT3Ln0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f10-20020a63de0a000000b0047063e55de3si15410902pgg.711.2022.11.09.19.15.16; Wed, 09 Nov 2022 19:15:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ckQT3Ln0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232425AbiKJCKU (ORCPT + 93 others); Wed, 9 Nov 2022 21:10:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232201AbiKJCKR (ORCPT ); Wed, 9 Nov 2022 21:10:17 -0500 Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54C42FAE0 for ; Wed, 9 Nov 2022 18:10:16 -0800 (PST) Received: by mail-qk1-x736.google.com with SMTP id x21so423063qkj.0 for ; Wed, 09 Nov 2022 18:10:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=zPoVaZI3+eUsBLgHzkw8YZRMFuPpzhPKpLA9H61td34=; b=ckQT3Ln0AWhyYcixRuVnKI3VqCz+vuIXq+8vrTgHRwP1n+SGL6xWBeGeKf2k6sYaXh J5BM1A5rwDKCMVZYTmLNhB7saTxNdi5rxePE42Cdgm2Zp1ZmsPRoquLKYzA9smdPHMjg UuZiNSI70Z549wO8XYnVfxYqa5iydDdE4vr7ciAipPgTcM41T7iKpH2IT7BkqEROoktY 2mBJzF0gkHRtH2+eYaORxT4JBLIs1qRTB6nh9VNq8dEroZ/DGn7Hgoq/PF6ErPgRm82E e4p3khY08YAjNlOcf4eyLWxnHv1o74EywFv7QI1F69hmgV0qu2AdYG2A1TeFib4Keb5C IqGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zPoVaZI3+eUsBLgHzkw8YZRMFuPpzhPKpLA9H61td34=; b=KtL49igV1G7fu2LJIf7TH7uvoutoRLIiTe/THlBmsD6kcuqNvbAd/DJvuF5MzEhalX e7QqRgRY3PU9YH2fF93k38KuQQywsYY9k/nV59hWO8uXYqSDPTLF/sIHAy79FQ3bpfGF rPZCfaArBV6D+iI3+ckKwez6mMs/sJvEAJpAqMWI36m5/MyLMhnFHVuLM0Uu4X7HmupC smmnEPmnh+YX+MqvX3a0zB0Qzqgu3JVpVGt3Xi4BdxKb6mc+/IU8nm7nUM/tKFRkQgXB OsYx+HoWk//+ngbLc8OvtLAPkcWINNUl+r26eL2wEZHIz/uExj51LbzqzVZsIOZx63xx IM0w== X-Gm-Message-State: ACrzQf2jp12ECfoCOXMDO/LFXshD21bWVRSxOIU2mpu+6XXO3Okq3WFq bRBRBLONkFTAvcPOfp0SLPYCPg== X-Received: by 2002:a37:444b:0:b0:6fa:2fc6:59e2 with SMTP id r72-20020a37444b000000b006fa2fc659e2mr40471427qka.541.1668046215381; Wed, 09 Nov 2022 18:10:15 -0800 (PST) Received: from ripple.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id c1-20020a05622a024100b0039cc0fbdb61sm10856656qtx.53.2022.11.09.18.10.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 18:10:14 -0800 (PST) Date: Wed, 9 Nov 2022 18:10:12 -0800 (PST) From: Hugh Dickins X-X-Sender: hugh@ripple.attlocal.net To: Sidhartha Kumar cc: Hugh Dickins , Andrew Morton , "Kirill A. Shutemov" , Matthew Wilcox , David Hildenbrand , Vlastimil Babka , Peter Xu , Yang Shi , John Hubbard , Mike Kravetz , Muchun Song , Miaohe Lin , Naoya Horiguchi , Mina Almasry , James Houghton , Zach O'Keefe , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 1/3] mm,hugetlb: use folio fields in second tail page In-Reply-To: Message-ID: <7f60bcac-a2e5-9c4b-8a8f-e972a93e116@google.com> References: <5f52de70-975-e94f-f141-543765736181@google.com> <3818cc9a-9999-d064-d778-9c94c5911e6@google.com> <5bd8a365-e2c5-a721-1257-81ec4ae0c626@oracle.com> <3934b34-ae2f-2119-9a68-33e51e909795@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 9 Nov 2022, Sidhartha Kumar wrote: > On 11/3/22 9:29 PM, Hugh Dickins wrote: > > > >> Should the usage of page_1 and page_2 also be documented here? > > You must have something interesting in mind to document about them, > > but I cannot guess what! They are for field alignment, not for use. > > (page_2 to help when/if someone needs to add another pageful.) > > > > Do you mean that I should copy the > > /* private: the union with struct page is transitional */ > > comment from above the original "struct page page;" line I copied? > > Or give all three of them a few underscores to imply not for use? > > I think the underscores with a comment about not for use could be helpful. I've given them two underscores (but not to the original "struct page page", since a build showed that used as "page" elsewhere, not just for alignment). I'm sorry, but I've not given them any comment: I don't think they belong in the commented fields section (_flags_1 etc), "page" is not there; and I'm, let's be honest, terrified of dabbling in this kerneldoc area - feel very fortunate to have escaped attack by a robot for my additions so far. I'll leave adding comment to you or other cognoscenti. Hugh