Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2219928pxb; Wed, 30 Mar 2022 19:44:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCqLYW5uQxaN9XaUqhPm4apqdSb1XbR31wng+0kMh2y4PPfqNFXWMUsnDxJF5ga+g/wWRZ X-Received: by 2002:a17:902:f687:b0:154:64be:3518 with SMTP id l7-20020a170902f68700b0015464be3518mr3166282plg.4.1648694670098; Wed, 30 Mar 2022 19:44:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648694670; cv=none; d=google.com; s=arc-20160816; b=dxilJJaU0BqsLMah3SpOvirn/aoI81TGprjIQ8OFw5Qjt54X+5SEDzDc6w44Sdw0IF Q/jH5XcnPAKEIwiZkOnJYiSwLWu7ID7VOBnM25lHNziwwOERO23odWNtvotmUvqr7lZj CUo/jZij+AfRjYBIfBB6fRGOCc5zDN7cJCZBVJOfBy4VbwidO8QBotoyj6RrtNCYf3ol +1r7Hoo8cZc6xM9assHjcATjtHwRbxDmQzAjnllISRN6NWdk+XVbp4iHnpAtXyMC3Zwv cxasifp0ycH+tsw9gJ/dpbq2Lzg1nOtpPCp0U0u26OxNkTLP9WeTSbPi8eJsAcrYxA34 vSfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:mime-version:date:message-id :dkim-signature; bh=zy/7HS0qaaxRj+G/qj6VKC3j0ZmtXBP+LOjK7v7JSBE=; b=yVfNKI2ngPiAwbd7EMOZecJDXotVPKtsplFqpwh2b2LfhLutAOUJP/RO71NE2o3++z ts7BgHXY8ixDovzr8JgiBMk6VTu+rHrW1+DaAcoywrc/2+46GhrbkQYMnEGXAmPNIoqZ a2IXQQnVaVB6fnoRrOcsrkCuw0gzKE0kBMKCAaTd0/Mja+XpYvfQOyFWsbwFk5x9a9jH tci3yQS+ZhfvOzIBZYy/4M8TtHB36RRWdg4Q4uL/gcytJagILJIeu3/vykAnNU6zbT/6 c1tHXRjcVP81cSjuXVdh5zrID3ozvbpmbq5qS5NJmjaWQntKZHpTGF9ez6SN6HyAQlC9 fIIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (bad format) header.i=@dorminy.me header.s=mail header.b=HJrpt646; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=dorminy.me Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d12-20020a056a00198c00b004fa3a8dff7fsi25271693pfl.54.2022.03.30.19.44.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 19:44:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=neutral (bad format) header.i=@dorminy.me header.s=mail header.b=HJrpt646; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=dorminy.me Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8F97D75C13; Wed, 30 Mar 2022 19:34:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349762AbiC3SKJ (ORCPT + 99 others); Wed, 30 Mar 2022 14:10:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349796AbiC3SKC (ORCPT ); Wed, 30 Mar 2022 14:10:02 -0400 X-Greylist: delayed 165218 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 30 Mar 2022 11:08:13 PDT Received: from box.fidei.email (box.fidei.email [71.19.144.250]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 570003EB83; Wed, 30 Mar 2022 11:08:13 -0700 (PDT) Received: from authenticated-user (box.fidei.email [71.19.144.250]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by box.fidei.email (Postfix) with ESMTPSA id 27F5B806CF; Wed, 30 Mar 2022 14:08:12 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dorminy.me; s=mail; t=1648663692; bh=cjEfYWlojMvy1ZwZHuEvFkA9bbP79DZeoHgKCxE+3aI=; h=Date:Subject:To:References:From:In-Reply-To:From; b=HJrpt646NW3nHWfP7VAom7E119dueb/vT3T1pXCwb0iwiL8P3hu44JCSViNjepqPJ 6dfFRwufTwzyo4uK3TXn6CP5gCh0sGl4ZjW0vkmeIICbec4YIB9UJX5/eFGitq/p4m RGFMjRmd5i8L8afpQvlprAwqmNIKoF+X5tEbuGJ8YnoCaduLu78NZM+plWHjVIxxJ0 wK5qNOB569sq+wPwrER2xBGYswW+p60hlwrTCw7poSTgCeI5fD87znksQwoDBaxEt9 tMNfRhqA5TBxA4vyafQPwEmdu1Gunxfw0q+gyAtBCYqxJ00KmAwgwEObif+p2Rkgso BFA6VWJzc2dOw== Message-ID: Date: Wed, 30 Mar 2022 14:08:11 -0400 MIME-Version: 1.0 Subject: Re: [PATCH v2 0/2] btrfs: allocate page arrays more efficiently Content-Language: en-US To: dsterba@suse.cz, Chris Mason , Josef Bacik , David Sterba , Nick Terrell , linux-kernel@vger.kernel.org, linux-btrfs@vger.kernel.org, kernel-team@fb.com References: <20220330165837.GH2237@twin.jikos.cz> From: Sweet Tea Dorminy In-Reply-To: <20220330165837.GH2237@twin.jikos.cz> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SCC_BODY_URI_ONLY,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 3/30/22 12:58, David Sterba wrote: > On Wed, Mar 30, 2022 at 12:44:05PM -0400, Sweet Tea Dorminy wrote: >> In several places, btrfs allocates an array of pages, one at a time. In >> addition to duplicating code, the mm subsystem provides a helper to >> allocate multiple pages at once into an array which is suited for our >> usecase. In the fast path, the batching can result in better allocation >> decisions and less locking. This changeset first adjusts the users to >> call a common array-of-pages allocation function, then adjusts that >> common function to use the batch page allocator. >> >> v2: moved new helper to extent_io.[ch]. Fixed title format. > > It does not address comments from > https://lore.kernel.org/linux-btrfs/20220328230909.GW2237@twin.jikos.cz I apologize, I completely missed the inline comments even though I thought something was missing and reread it a couple times... v3 soon.