From: Johannes Thumshirn <johannes.thumshirn@wdc.com>
To: Miroslav Cimerman <mc@raidlab.org>, linux-btrfs@vger.kernel.org
Cc: David Sterba <dsterba@suse.com>, Chris Mason <mason@kernel.org>,
Naohiro Aota <naohiro.aota@wdc.com>, Qu Wenruo <wqu@suse.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] btrfs: zoned: finish raid stripe tree zones once all data is written
Date: Fri, 27 Nov 2026 12:01:25 +0100 [thread overview]
Message-ID: <14601324-079c-4e79-81d1-1d0a59d8bd6f@wdc.com> (raw)
In-Reply-To: <20261122034826.2333981-3-mc@raidlab.org>
On 11/22/26 4:48 AM, Miroslav Cimerman wrote:
> @@ -266,6 +266,12 @@ struct btrfs_block_group {
> u64 alloc_offset;
> u64 zone_unusable;
> u64 zone_capacity;
> + /*
> + * Bytes of allocated data whose write has completed. Only used for
> + * data block groups with the raid stripe tree on a zoned filesystem.
> + * Protected by the spinlock 'lock'.
> + */
> + u64 zone_written;
Not a huge fan of another field in btrfs_block_group for a niche case.
Can we solve it differently?
Otherwise looks good.
prev parent reply other threads:[~2026-11-27 11:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-22 3:48 [PATCH 0/2] btrfs: zoned: unwritten copies of mirrored data writes Miroslav Cimerman
2026-11-22 3:48 ` [PATCH 1/2] btrfs: zoned: use zone append for every copy of a mirrored write Miroslav Cimerman
2026-11-27 10:46 ` Johannes Thumshirn
2026-11-22 3:48 ` [PATCH 2/2] btrfs: zoned: finish raid stripe tree zones once all data is written Miroslav Cimerman
2026-11-27 11:01 ` Johannes Thumshirn [this message]
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=14601324-079c-4e79-81d1-1d0a59d8bd6f@wdc.com \
--to=johannes.thumshirn@wdc.com \
--cc=dsterba@suse.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mason@kernel.org \
--cc=mc@raidlab.org \
--cc=naohiro.aota@wdc.com \
--cc=wqu@suse.com \
/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
all inboxes | Powered by JetHome®