Skip to content

Commit

Permalink
Fix wrong offset args in vdev_cache_write
Browse files Browse the repository at this point in the history
The offset arguments is wrong when changing to abd_copy_off in a6255b7

Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Gvozden Neskovic <[email protected]>
Signed-off-by: Chunwei Chen <[email protected]>
Closes openzfs#5932 
Closes openzfs#5936
  • Loading branch information
tuxoko authored and behlendorf committed Mar 28, 2017
1 parent 7c4f151 commit 12aec7d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions module/zfs/vdev_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,9 @@ vdev_cache_write(zio_t *zio)
if (ve->ve_fill_io != NULL) {
ve->ve_missed_update = 1;
} else {
abd_copy_off(ve->ve_abd, zio->io_abd, start - io_start,
start - ve->ve_offset, end - start);
abd_copy_off(ve->ve_abd, zio->io_abd,
start - ve->ve_offset, start - io_start,
end - start);
}
ve = AVL_NEXT(&vc->vc_offset_tree, ve);
}
Expand Down

0 comments on commit 12aec7d

Please sign in to comment.