Skip to content

Commit dfcb03a

Browse files
naotakdave
authored andcommitted
btrfs: zoned: drop no longer valid write pointer check
There is a check of the write pointer vs the zone size to reject an invalid write pointer. However, as of now, we have RAID0/RAID10 on the zoned mode, we can have a block group whose size is larger than the zone size. As an equivalent check against the block group's zone_capacity is already there, we can just drop this invalid check. Fixes: 568220f ("btrfs: zoned: support RAID0/1/10 on top of raid stripe tree") Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent b821281 commit dfcb03a

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

fs/btrfs/zoned.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,13 +1661,6 @@ int btrfs_load_block_group_zone_info(struct btrfs_block_group *cache, bool new)
16611661
}
16621662

16631663
out:
1664-
if (cache->alloc_offset > fs_info->zone_size) {
1665-
btrfs_err(fs_info,
1666-
"zoned: invalid write pointer %llu in block group %llu",
1667-
cache->alloc_offset, cache->start);
1668-
ret = -EIO;
1669-
}
1670-
16711664
if (cache->alloc_offset > cache->zone_capacity) {
16721665
btrfs_err(fs_info,
16731666
"zoned: invalid write pointer %llu (larger than zone capacity %llu) in block group %llu",

0 commit comments

Comments
 (0)