From: Christoph Hellwig <hch@infradead.org>
To: Naohiro Aota <naota@elisp.net>
Cc: linux-btrfs@vger.kernel.org, Naohiro Aota <naohiro.aota@wdc.com>
Subject: Re: [PATCH] btrfs: zoned: do not limit delalloc size to fs_info->max_extent_size
Date: Mon, 12 Jun 2023 22:17:23 -0700 [thread overview]
Message-ID: <ZIf74wFg7NmvmQxn@infradead.org> (raw)
In-Reply-To: <a2f4a2162fdc3457830fa997c70ffa7c231759ad.1686582572.git.naohiro.aota@wdc.com>
On Tue, Jun 13, 2023 at 12:10:29AM +0900, Naohiro Aota wrote:
> This patch reverts the delalloc size to BTRFS_MAX_EXTENT_SIZE, as it does
> not directly corresponds to the size of one extent. Instead, this patch
> will limit the allocation size at cow_file_range() for the zoned mode.
Maybe I'm missing something, but that limitation also seems wrong or at
least suboptimal. There is absolutely no problem in creating a large
allocation in cow_file_range. btrfs_submit_bio will split it into max
appens size chunks for I/O, and depending on if they got reordered or
not we might even be able to record the entire big allocation as a
single extent on disk.
next prev parent reply other threads:[~2023-06-13 5:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-12 15:10 [PATCH] btrfs: zoned: do not limit delalloc size to fs_info->max_extent_size Naohiro Aota
2023-06-12 22:22 ` David Sterba
2023-06-13 3:35 ` Naohiro Aota
2023-06-13 5:17 ` Christoph Hellwig [this message]
2023-06-13 5:53 ` Naohiro Aota
2023-06-14 1:59 ` Naohiro Aota
2023-06-14 5:44 ` hch
2023-06-19 4:35 ` Naohiro Aota
2023-06-14 2:05 ` Naohiro Aota
2023-06-14 22:08 ` David Sterba
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZIf74wFg7NmvmQxn@infradead.org \
--to=hch@infradead.org \
--cc=linux-btrfs@vger.kernel.org \
--cc=naohiro.aota@wdc.com \
--cc=naota@elisp.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox