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 EB105C10F1E for ; Tue, 13 Dec 2022 14:08:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235644AbiLMOIT (ORCPT ); Tue, 13 Dec 2022 09:08:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234989AbiLMOIQ (ORCPT ); Tue, 13 Dec 2022 09:08:16 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67B3D18B35 for ; Tue, 13 Dec 2022 06:08:10 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id D793167373; Tue, 13 Dec 2022 15:08:06 +0100 (CET) Date: Tue, 13 Dec 2022 15:08:06 +0100 From: Christoph Hellwig To: Josef Bacik Cc: Christoph Hellwig , Chris Mason , David Sterba , Naohiro Aota , linux-btrfs@vger.kernel.org Subject: Re: [PATCH 1/7] btrfs: use file_offset to limit bios size in calc_bio_boundaries Message-ID: <20221213140806.GA24075@lst.de> References: <20221212073724.12637-1-hch@lst.de> <20221212073724.12637-2-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Mon, Dec 12, 2022 at 01:54:14PM -0500, Josef Bacik wrote: > Can you add a comment to the code as well? Sure. > I'm going to see this in a year or two > and spend a little bit scratching my head as to why we're using the file_offset > here. With that done you can add Heh. I hope the code in this form is actually gone in a year, as the concept of first creating the ordered extents and inserting them into a tree, and then doing a lookup a few lines down in writepages is not exactly very efficient and we should be able to just pass a pointer down. But that is several series down in my queue.