Skip to content

Commit

Permalink
Don't test for gang blocks when populating the trim map.
Browse files Browse the repository at this point in the history
This test is useless since 19afab1,
which fixed gang blocks issues. Besides, the original code wasn't even
working properly since io_bp is always NULL on a physical vdev ZIO.
  • Loading branch information
dechamps committed Sep 12, 2012
1 parent 19afab1 commit eefbe9b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions module/zfs/zio.c
Original file line number Diff line number Diff line change
Expand Up @@ -2424,8 +2424,7 @@ zio_vdev_io_start(zio_t *zio)
}

if (vd->vdev_ops->vdev_op_leaf && zio->io_type == ZIO_TYPE_FREE) {
if (zio->io_bp == NULL || !BP_IS_GANG(zio->io_bp))
trim_map_free(zio);
trim_map_free(zio);
return (ZIO_PIPELINE_CONTINUE);
}

Expand Down

0 comments on commit eefbe9b

Please sign in to comment.