Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp665616pxb; Thu, 31 Mar 2022 14:22:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwa9vXRR7PFB0xGEnZOnutMMkwOkb4Pz6YydKXujBhzyJMRbVX3W/IesxWopOz0mos0pdve X-Received: by 2002:a17:902:ecca:b0:154:8802:7cc2 with SMTP id a10-20020a170902ecca00b0015488027cc2mr7100061plh.37.1648761727815; Thu, 31 Mar 2022 14:22:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648761727; cv=none; d=google.com; s=arc-20160816; b=R08erPQkRaDQHQP0AaMxFoGLi5QO395HjtX2y7gwp81K1dSUouCgulcnEfGzYwbyAt oiBMnx5Qlh9uG86XrenqmSn4mhS4nBNGosBaLmRXh2K0Rf9TCmf+EEPlDR3dgECvx35c 97OoVyYWUH0lhoyeLMj3IrARETDX52vUlfGeDRe3+nvzoetqWAY2w94+dNwbeYXvaoUK i8bcWThSZj8ti0L6C52h0sGK40W9DUgKCKYEYKtQkOoPScbODIY6Uyb413+d8WHWTJAP Y+2japwwD8UwPpFefGWFXMYnER3jJDUKgaftAcHnn9RWMdi7qP8/DkNHyuTuLGIMsAvo aNNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:reply-to:message-id :subject:cc:to:from:date:dkim-signature:dkim-signature; bh=lSbtcaTG9qrfonhYRVCF3uDE8HndJaKQfH9efOo3Yco=; b=Zy7tU3/Lspusrwg63dj4+kaOlkN8S8nmkER+HM56E5QSBE2znAyqbV8cP69GKbb+5a 7k1JH0uuh/YLwLVYB9TI2rLoR9P8YmEG6PIFUv4eAj2zqezZQ+13xbxnaJCGU/bNZ0vZ 3+JZAs96qCRHTjIYP17kuotihz+/pgGvdLJnw++RXCb3idBziyhWtWpyYTJyCy1Eksg5 IHCscEZmQVyMDa0BaQtL9ra/m3UrjUYC3lGSV42YuEROurparWoCE78w4o6nXj99hSDE hyU3s5McQC9dGhwz3hi7pEIZJoPEm7ddA/O46++6EFIa4pkQGuEfvHzXXmCDgmw2I0ea Mb5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="TO/kYKTt"; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=5xxHU4X4; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o22-20020a637e56000000b003862e2ae4f3si587088pgn.352.2022.03.31.14.21.53; Thu, 31 Mar 2022 14:22:07 -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=@suse.cz header.s=susede2_rsa header.b="TO/kYKTt"; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=5xxHU4X4; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240234AbiCaQti (ORCPT + 99 others); Thu, 31 Mar 2022 12:49:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239098AbiCaQth (ORCPT ); Thu, 31 Mar 2022 12:49:37 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 762D0209A46; Thu, 31 Mar 2022 09:47:49 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id EE8F01F7AC; Thu, 31 Mar 2022 16:47:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1648745267; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lSbtcaTG9qrfonhYRVCF3uDE8HndJaKQfH9efOo3Yco=; b=TO/kYKTtowcBXNd2xBWc5Z+KBwXS78oK9BPBbkFByaDZtPUWnOffTdDJ8Jst+ADMjhZWoM 66vvIVUgm+AxGiE7neGTnTsengOZDiIALyp9i1GcwGrRbeRwtSjAfqwpNdhHGINWYiALRc AwfBy8gR7+H1mxhrdplU6KAO/F1oXOM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1648745267; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lSbtcaTG9qrfonhYRVCF3uDE8HndJaKQfH9efOo3Yco=; b=5xxHU4X4nIjFDuGYV2WJGPKwOSdVlz4G0xSGHc+hcHRxO4BB/YlwmxpGR95J5J7vW6yyGa 9ciwwiAIspnDo1Cw== Received: from ds.suse.cz (ds.suse.cz [10.100.12.205]) by relay2.suse.de (Postfix) with ESMTP id DCDFBA3B82; Thu, 31 Mar 2022 16:47:47 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 45870DA7F3; Thu, 31 Mar 2022 18:43:49 +0200 (CEST) Date: Thu, 31 Mar 2022 18:43:49 +0200 From: David Sterba To: Sweet Tea Dorminy Cc: 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 Subject: Re: [PATCH v2 0/2] btrfs: allocate page arrays more efficiently Message-ID: <20220331164349.GC15609@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Sweet Tea Dorminy , 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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, Mar 30, 2022 at 02:08:11PM -0400, Sweet Tea Dorminy wrote: > > > 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. Yeah it's common to not trim a patch and write comments right next to the code, trimming to just a piece of code is also done if it's just the one thing to comment, but for example I go through the patch several times so trimming would not work very well. If you're using mutt, there's a command (bound to T by default) that hides any quoted text.