From: Johannes Thumshirn <johannes.thumshirn@wdc.com>
To: Chris Mason <clm@fb.com>, Josef Bacik <josef@toxicpanda.com>,
David Sterba <dsterba@suse.com>
Cc: Qu Wenru <wqu@suse.com>,
linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org,
Johannes Thumshirn <johannes.thumshirn@wdc.com>
Subject: [PATCH v2 1/2] btrfs: check for incompat bit in btrfs_insert_raid_extent
Date: Wed, 20 Sep 2023 02:31:17 -0700 [thread overview]
Message-ID: <20230920-rst-updates-v2-1-b4dc154a648f@wdc.com> (raw)
In-Reply-To: <20230920-rst-updates-v2-0-b4dc154a648f@wdc.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
---
fs/btrfs/raid-stripe-tree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/btrfs/raid-stripe-tree.c b/fs/btrfs/raid-stripe-tree.c
index 5e8afe662ed1..7b968eaf9e58 100644
--- a/fs/btrfs/raid-stripe-tree.c
+++ b/fs/btrfs/raid-stripe-tree.c
@@ -263,7 +263,7 @@ int btrfs_insert_raid_extent(struct btrfs_trans_handle *trans,
u64 map_type;
int ret;
- if (!trans->fs_info->stripe_root)
+ if (!btrfs_fs_incompat(trans->fs_info, RAID_STRIPE_TREE))
return 0;
map_type = list_first_entry(&ordered_extent->bioc_list, typeof(*bioc),
--
2.41.0
next prev parent reply other threads:[~2023-09-20 9:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-20 9:31 [PATCH v2 0/2] btrfs: RAID stripe tree updates Johannes Thumshirn
2023-09-20 9:31 ` Johannes Thumshirn [this message]
2023-09-20 9:31 ` [PATCH v2 2/2] btrfs: check for incompat bit in btrfs_need_stripe_tree_update Johannes Thumshirn
2023-09-20 14:50 ` [PATCH v2 0/2] btrfs: RAID stripe tree updates 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=20230920-rst-updates-v2-1-b4dc154a648f@wdc.com \
--to=johannes.thumshirn@wdc.com \
--cc=clm@fb.com \
--cc=dsterba@suse.com \
--cc=josef@toxicpanda.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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;
as well as URLs for NNTP newsgroup(s).