mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 19:28:53 +03:00
Use abd_zero_off() where applicable
In several places abd_zero() cleaned ABD filled at the next line. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Alexander Motin <mav@FreeBSD.org> Sponsored by: iXsystems, Inc. Closes #15514
This commit is contained in:
+2
-1
@@ -517,8 +517,9 @@ mmp_write_uberblock(spa_t *spa)
|
||||
|
||||
zio_t *zio = zio_null(mmp->mmp_zio_root, spa, NULL, NULL, NULL, flags);
|
||||
abd_t *ub_abd = abd_alloc_for_io(VDEV_UBERBLOCK_SIZE(vd), B_TRUE);
|
||||
abd_zero(ub_abd, VDEV_UBERBLOCK_SIZE(vd));
|
||||
abd_copy_from_buf(ub_abd, ub, sizeof (uberblock_t));
|
||||
abd_zero_off(ub_abd, sizeof (uberblock_t),
|
||||
VDEV_UBERBLOCK_SIZE(vd) - sizeof (uberblock_t));
|
||||
|
||||
mmp->mmp_seq++;
|
||||
mmp->mmp_kstat_id++;
|
||||
|
||||
Reference in New Issue
Block a user