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 <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Gvozden Neskovic <neskovic@gmail.com>
Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Closes openzfs#5932 
Closes openzfs#5936
  • Loading branch information
tuxoko authored and behlendorf committed Mar 28, 2017
1 parent 1ed4ac2 commit a4ca043
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 a4ca043

Please sign in to comment.