* [PATCH v2 0/2] btrfs: RAID stripe tree updates
@ 2023-09-20 9:31 Johannes Thumshirn
2023-09-20 9:31 ` [PATCH v2 1/2] btrfs: check for incompat bit in btrfs_insert_raid_extent Johannes Thumshirn
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Johannes Thumshirn @ 2023-09-20 9:31 UTC (permalink / raw)
To: Chris Mason, Josef Bacik, David Sterba
Cc: Qu Wenru, linux-btrfs, linux-kernel, Johannes Thumshirn
Here is the second batch of updates for the RAID stripe tree patchset in
for-next which address some of the review comments.
---
- Link to first batch: https://lore.kernel.org/r/20230918-rst-updates-v1-0-17686dc06859@wdc.com
---
Johannes Thumshirn (2):
btrfs: check for incompat bit in btrfs_insert_raid_extent
btrfs: check for incompat bit in btrfs_need_stripe_tree_update
fs/btrfs/raid-stripe-tree.c | 2 +-
fs/btrfs/raid-stripe-tree.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
base-commit: e70275b918d304c9687a91e990a8ef440658c3bf
change-id: 20230915-rst-updates-8c55784ca4ef
Best regards,
--
Johannes Thumshirn <johannes.thumshirn@wdc.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 1/2] btrfs: check for incompat bit in btrfs_insert_raid_extent
2023-09-20 9:31 [PATCH v2 0/2] btrfs: RAID stripe tree updates Johannes Thumshirn
@ 2023-09-20 9:31 ` Johannes Thumshirn
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
2 siblings, 0 replies; 4+ messages in thread
From: Johannes Thumshirn @ 2023-09-20 9:31 UTC (permalink / raw)
To: Chris Mason, Josef Bacik, David Sterba
Cc: Qu Wenru, linux-btrfs, linux-kernel, Johannes Thumshirn
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2 2/2] btrfs: check for incompat bit in btrfs_need_stripe_tree_update
2023-09-20 9:31 [PATCH v2 0/2] btrfs: RAID stripe tree updates Johannes Thumshirn
2023-09-20 9:31 ` [PATCH v2 1/2] btrfs: check for incompat bit in btrfs_insert_raid_extent Johannes Thumshirn
@ 2023-09-20 9:31 ` Johannes Thumshirn
2023-09-20 14:50 ` [PATCH v2 0/2] btrfs: RAID stripe tree updates David Sterba
2 siblings, 0 replies; 4+ messages in thread
From: Johannes Thumshirn @ 2023-09-20 9:31 UTC (permalink / raw)
To: Chris Mason, Josef Bacik, David Sterba
Cc: Qu Wenru, linux-btrfs, linux-kernel, Johannes Thumshirn
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
---
fs/btrfs/raid-stripe-tree.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/btrfs/raid-stripe-tree.h b/fs/btrfs/raid-stripe-tree.h
index b5c64974e702..cdb58b38fcb5 100644
--- a/fs/btrfs/raid-stripe-tree.h
+++ b/fs/btrfs/raid-stripe-tree.h
@@ -29,7 +29,7 @@ static inline bool btrfs_need_stripe_tree_update(struct btrfs_fs_info *fs_info,
u64 type = map_type & BTRFS_BLOCK_GROUP_TYPE_MASK;
u64 profile = map_type & BTRFS_BLOCK_GROUP_PROFILE_MASK;
- if (!fs_info->stripe_root)
+ if (!btrfs_fs_incompat(fs_info, RAID_STRIPE_TREE))
return false;
if (type != BTRFS_BLOCK_GROUP_DATA)
--
2.41.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2 0/2] btrfs: RAID stripe tree updates
2023-09-20 9:31 [PATCH v2 0/2] btrfs: RAID stripe tree updates Johannes Thumshirn
2023-09-20 9:31 ` [PATCH v2 1/2] btrfs: check for incompat bit in btrfs_insert_raid_extent Johannes Thumshirn
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 ` David Sterba
2 siblings, 0 replies; 4+ messages in thread
From: David Sterba @ 2023-09-20 14:50 UTC (permalink / raw)
To: Johannes Thumshirn
Cc: Chris Mason, Josef Bacik, David Sterba, Qu Wenru, linux-btrfs,
linux-kernel
On Wed, Sep 20, 2023 at 02:31:16AM -0700, Johannes Thumshirn wrote:
> Here is the second batch of updates for the RAID stripe tree patchset in
> for-next which address some of the review comments.
>
> ---
> - Link to first batch: https://lore.kernel.org/r/20230918-rst-updates-v1-0-17686dc06859@wdc.com
>
> ---
> Johannes Thumshirn (2):
> btrfs: check for incompat bit in btrfs_insert_raid_extent
> btrfs: check for incompat bit in btrfs_need_stripe_tree_update
>
> fs/btrfs/raid-stripe-tree.c | 2 +-
> fs/btrfs/raid-stripe-tree.h | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
Folded, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-09-20 14:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-20 9:31 [PATCH v2 0/2] btrfs: RAID stripe tree updates Johannes Thumshirn
2023-09-20 9:31 ` [PATCH v2 1/2] btrfs: check for incompat bit in btrfs_insert_raid_extent Johannes Thumshirn
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
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).