From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A667C433F5 for ; Fri, 15 Apr 2022 05:45:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344072AbiDOFsX (ORCPT ); Fri, 15 Apr 2022 01:48:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349937AbiDOFre (ORCPT ); Fri, 15 Apr 2022 01:47:34 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 660023E0D8 for ; Thu, 14 Apr 2022 22:45:07 -0700 (PDT) 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=7BHz5hsrXcPtFZqARseCUZueCEK0ZSG/gIZqHHZf5sk=; b=tnKEOjFzU8kfJZIxbxXALCku+u IxhpL32eH+z43HT0GkwbGDoIWYarML2yEHunh9gsh7sV4cCoesaAuih4G8wdhFCupjOCT/DH4AkLZ TVsWkPmjXq82PL1IY1HgUBafSocFWM4zoXSLoxVbhRwjQdLb5UAg1IEXcHjM8OkH+zebj1DM26C3R d0GqKr8IU7uU8bA2eZN8tZnrndKMhve6hBIIa/LLPHq/uE7YcdjdrCMCDktYfMaSsOkidnjRI/K9n cYPsMcKS+njfYSNmCz0EprER++arMOehEpBThYV0q9VbjGzdnGXgw3q0sHAB+XNw0O6TtfStpd9Ph M0cevpyA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfElU-008kam-86; Fri, 15 Apr 2022 05:45:04 +0000 Date: Thu, 14 Apr 2022 22:45:04 -0700 From: Christoph Hellwig To: Qu Wenruo Cc: Christoph Hellwig , Qu Wenruo , linux-btrfs@vger.kernel.org Subject: Re: [PATCH v2 04/17] btrfs: introduce new cached members for btrfs_raid_bio Message-ID: References: <38fdde8665c4765551fea3c5818bfa79b1214fa6.1649753690.git.wqu@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Fri, Apr 15, 2022 at 01:34:19PM +0800, Qu Wenruo wrote: > > > On 2022/4/15 13:31, Christoph Hellwig wrote: > > What is cached about these members? > > It's just like btrfs_fs_info::sectorsize, gives us a quick way to use, > without calculating the same value again and again. > > BTW, are you suggesting to calculate everything when needed? > > I'm fine either way. No. I was just confused by the term cached.