Skip to content

Commit 481cfcc

Browse files
fdmananakdave
authored andcommitted
btrfs: update panic message when splitting ordered extent
During ordered extent splitting if we find a duplicated ordered extent when attempting to insert the new ordered extent we panic but with a message that has the "zoned:" prefix. This is because the splitting used to be exclusive for zoned filesystems, but as of commit b73a6fd ("btrfs: split partial dio bios before submit") it can also be done for non zoned filesystems during direct IO writes. So remove the "zoned:" prefix from the message and mention the split to make it more specific and different from the panic message at insert_ordered_extent(). Reviewed-by: Josef Bacik <[email protected]> Reviewed-by: Qu Wenruo <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 129e40f commit 481cfcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/ordered-data.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,7 @@ struct btrfs_ordered_extent *btrfs_split_ordered_extent(
13051305
node = tree_insert(&inode->ordered_tree, new->file_offset, &new->rb_node);
13061306
if (unlikely(node))
13071307
btrfs_panic(fs_info, -EEXIST,
1308-
"zoned: inconsistency in ordered tree at offset %llu",
1308+
"inconsistency in ordered tree at offset %llu after split",
13091309
new->file_offset);
13101310
spin_unlock(&inode->ordered_tree_lock);
13111311

0 commit comments

Comments
 (0)