Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp653243rwe; Fri, 14 Apr 2023 08:03:35 -0700 (PDT) X-Google-Smtp-Source: AKy350ZDucDlXBQGb9zv+U3Rcajrj7B0feDlBciv5JxmzfoYCZmRLIfDMVhHHKsm97g3Dmo68d7i X-Received: by 2002:a1f:458e:0:b0:440:3b4e:9a31 with SMTP id s136-20020a1f458e000000b004403b4e9a31mr2045787vka.2.1681484615502; Fri, 14 Apr 2023 08:03:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681484615; cv=none; d=google.com; s=arc-20160816; b=YtJ9K1P9b7VSWgcCc9iC+Oi3dqz18Wu/FgpTG7KJVohyCFm4lSJjjSMsedwJ9xCxdd tnggY5uYAjkPzmBfChdAmkXHNFTJm+hejrI8JxY1GiM5xYS6q4N6VvgHEaXWwimygdYH hoQDZUWeOnhhUR9yKm43huYdJTOS0PXuupUeg/mFwtl0ytxyqXjT1jMx9UU+TgcgBOok XsBbwN27JgdnogQnAEaS2EUXCKxkHINaBT9NrYE3p2udPK3IgxmHChZJYqWmpIlNJrYP 9gUkpvZ3kEin6NGoTE/shV3HS1smVgBrN7pF2+iueVf/L7dQgiTkkUNKAbfHxW+Y+T39 x5tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-transfer-encoding :in-reply-to:from:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature:dkim-filter; bh=k2KMSY3rEPC/l3wXRBxqdB3ENhOA3GWRhLXn6UokrYg=; b=veCw6UaPudsw4YzmHYZHy2yIC73JtDHgMvpkT+rD7aLs8UiSEE9BEDSIrPodN95A36 AWj7OoIsKEC5ekaCQA30eRI59sN6GaBkN2suysj8eJG3O+THnRDV8lQ5Kav251mbqIfG B/DT/YSxES+BnoV0w2liPIThzSW0o5/teWTCQuIJJzpi7PSAIgn9DSyS+DiNlsNLFumx Hynk042FIPfp6ieHBm6AU8zMnOCjsILYQBWwaJujQoEj2+4nYh3asnoNDNLvKOTBgIrw BAhg3VSvho5jEYkPDepXvHs9FzRLw06jAAuKIS12pRf651xGJmxuyXgJ+n172ApSS54n AYSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Ncz0YzLo; 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=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p124-20020a1fd882000000b003e1a632363asi1125782vkg.132.2023.04.14.08.03.04; Fri, 14 Apr 2023 08:03:35 -0700 (PDT) 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=@samsung.com header.s=mail20170921 header.b=Ncz0YzLo; 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=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229663AbjDNPB4 (ORCPT + 99 others); Fri, 14 Apr 2023 11:01:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230179AbjDNPBy (ORCPT ); Fri, 14 Apr 2023 11:01:54 -0400 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8664365A8 for ; Fri, 14 Apr 2023 08:01:51 -0700 (PDT) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20230414150150euoutp02e376699b6263a5393f42b731331d4bbf~V1UDGoCjs0307903079euoutp02C for ; Fri, 14 Apr 2023 15:01:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20230414150150euoutp02e376699b6263a5393f42b731331d4bbf~V1UDGoCjs0307903079euoutp02C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1681484510; bh=k2KMSY3rEPC/l3wXRBxqdB3ENhOA3GWRhLXn6UokrYg=; h=Date:Subject:To:CC:From:In-Reply-To:References:From; b=Ncz0YzLo1qqj+ch4v7bUvJJXCgwLKsEPK9l45RyoZdy6Re9wKeeWsAPS7OUvNr9Tb hluSI+0SskDxTDzCmAZpz3CVupM3qtk4E5ZHB3E1ymr06yODepqJ5QyRugAKxXnBdr 9NjW7NC41M1IBrwiAU1NtRlDHH0+AD7CaoecEfdY= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20230414150149eucas1p28c28debfd8970a58a0f7aad4911ed40e~V1UC3sMaI3175731757eucas1p2W; Fri, 14 Apr 2023 15:01:49 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 19.16.09966.DDA69346; Fri, 14 Apr 2023 16:01:49 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20230414150149eucas1p2530c12531599e6fd376a19f8a7d59740~V1UCcvLn-1376713767eucas1p21; Fri, 14 Apr 2023 15:01:49 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230414150149eusmtrp2ffa4c4747cf08e810cdb7586e9c84a38~V1UCcMMtp2102421024eusmtrp2t; Fri, 14 Apr 2023 15:01:49 +0000 (GMT) X-AuditID: cbfec7f4-d39ff700000026ee-3a-64396add5e29 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 0B.E9.34412.DDA69346; Fri, 14 Apr 2023 16:01:49 +0100 (BST) Received: from CAMSVWEXC02.scsc.local (unknown [106.1.227.72]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20230414150149eusmtip2609769cecb935de635342ecd39098ad9~V1UCPooxn2857528575eusmtip2U; Fri, 14 Apr 2023 15:01:49 +0000 (GMT) Received: from [106.110.32.65] (106.110.32.65) by CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 14 Apr 2023 16:01:48 +0100 Message-ID: <505f1aac-8348-56c2-b925-6a905af9be24@samsung.com> Date: Fri, 14 Apr 2023 17:01:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [RFC 2/4] buffer: add alloc_folio_buffers() helper Content-Language: en-US To: Matthew Wilcox CC: , , , , , , , From: Pankaj Raghav In-Reply-To: Content-Transfer-Encoding: 7bit X-Originating-IP: [106.110.32.65] X-ClientProxiedBy: CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) To CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrMKsWRmVeSWpSXmKPExsWy7djPc7p3syxTDM691rWYs34Nm8Xrw58Y LfYsmsRksWfvSRaLy7vmsFncmPCU0eL83+OsFr9/zGFz4PDYvELLY9OqTjaPEzN+s3hsPl3t 8XmTnMemJ2+ZAtiiuGxSUnMyy1KL9O0SuDK2zHvDWPCHrWJ+g1oD4yXWLkZODgkBE4nfc6Yy dzFycQgJrGCUOP3zFwuE84VRYv7Tm+wQzmdGif+t/UwwLWsfvGWCSCxnlJj36CMjXNWMVQ/A BgsJ7GSU+H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rWJ+g1oD4yXWLkZODgkBE4m1D94ydTFycQgJLGWU2P79O1RCRmLj l6tQtrDEn2tdbBBFHxklFq0EKQJxdjJKTL63nBGkilfATmLltUZ2EJtFQFXi8ss+qLigxMmZ T1hAbFGBaIkby78xgdjCAvYSHSc2MoPYzALiEreezAeKc3CICGhIvNliBDKfWeAKo8TTO0dY IJY9Z5S4+2wmG0gRm4CWRGMn2C5OoBfaFv6GmqMp0br9NzuELS+x/e0cZogPFCUm3XwP9U2t xOe/zxgnMIrOQnLeLCRnzEIyahaSUQsYWVYxiqSWFuem5xYb6RUn5haX5qXrJefnbmIERvO2 Yz+37GBc+eqj3iFGJg7GQ4wSHMxKIrxVlpYpQrwpiZVVqUX58UWlOanFhxhNgWE0kVlKNDkf mE7ySuINzQxMDU3MLA1MLc2MlcR5PQs6EoUE0hNLUrNTUwtSi2D6mDg4pRqYmOsTFhQdVZm6 WPOmSqBVaNTP6EiTG2u+vrQKOvT5pPjlT73yer7+OnO+9OmuV835eGC90vmgHQsf/n9w4pDe 3p7ZR0TZd0ucL5/ffXxe/ZYWBT5mwaJXtUuDnd5+vfbvw7ZE32Oc6o8udTnZt4tkSH25pxtS 6j93EpPS1679t4yduRaeafXedydmkZjHfOdXyxZ/uOFnOu9i+oLMU/8Cd/iqvfxZbpQ7Yauf vkPi1GIJuwkLP+5lsG7LuTDp8e17gu29W00ZpTy/sylZebtsuG3otjTg3Ku3HzeaSj3VzJAJ qk5I+jxrglbGm8yI3cUtLJ03O+K3pei+KHYpihW+urTl9v9vHOJPy2btDli3VYmlOCPRUIu5 qDgRACVJkUxvAwAA X-CMS-MailID: 20230414150149eucas1p2530c12531599e6fd376a19f8a7d59740 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20230414110826eucas1p2c5afcbd64c536a803751b41d03eb9e99 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20230414110826eucas1p2c5afcbd64c536a803751b41d03eb9e99 References: <20230414110821.21548-1-p.raghav@samsung.com> <20230414110821.21548-3-p.raghav@samsung.com> X-Spam-Status: No, score=-9.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023-04-14 15:06, Matthew Wilcox wrote: > On Fri, Apr 14, 2023 at 01:08:19PM +0200, Pankaj Raghav wrote: >> Folio version of alloc_page_buffers() helper. This is required to convert >> create_page_buffers() to create_folio_buffers() later in the series. >> >> It removes one call to compound_head() compared to alloc_page_buffers(). > > I would convert alloc_page_buffers() to folio_alloc_buffers() and > add > > static struct buffer_head *alloc_page_buffers(struct page *page, > unsigned long size, bool retry) > { > return folio_alloc_buffers(page_folio(page), size, retry); > } > > in buffer_head.h > > (there are only five callers, so this feels like a better tradeoff > than creating a new function) > That is a good idea and follows the usual pattern for folio conversion. I will send a new version soon with your other comments as well. -- Pankaj