vdev_label.c (260157) | vdev_label.c (270247) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 978 unchanged lines hidden (view full) --- 987 * We only get credit for writes to known-visible vdevs; see spa_vdev_add(). 988 */ 989static void 990vdev_uberblock_sync_done(zio_t *zio) 991{ 992 uint64_t *good_writes = zio->io_private; 993 994 if (zio->io_error == 0 && zio->io_vd->vdev_top->vdev_ms_array != 0) | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 978 unchanged lines hidden (view full) --- 987 * We only get credit for writes to known-visible vdevs; see spa_vdev_add(). 988 */ 989static void 990vdev_uberblock_sync_done(zio_t *zio) 991{ 992 uint64_t *good_writes = zio->io_private; 993 994 if (zio->io_error == 0 && zio->io_vd->vdev_top->vdev_ms_array != 0) |
995 atomic_add_64(good_writes, 1); | 995 atomic_inc_64(good_writes); |
996} 997 998/* 999 * Write the uberblock to all labels of all leaves of the specified vdev. 1000 */ 1001static void 1002vdev_uberblock_sync(zio_t *zio, uberblock_t *ub, vdev_t *vd, int flags) 1003{ --- 58 unchanged lines hidden (view full) --- 1062 * On success, increment the count of good writes for our top-level vdev. 1063 */ 1064static void 1065vdev_label_sync_done(zio_t *zio) 1066{ 1067 uint64_t *good_writes = zio->io_private; 1068 1069 if (zio->io_error == 0) | 996} 997 998/* 999 * Write the uberblock to all labels of all leaves of the specified vdev. 1000 */ 1001static void 1002vdev_uberblock_sync(zio_t *zio, uberblock_t *ub, vdev_t *vd, int flags) 1003{ --- 58 unchanged lines hidden (view full) --- 1062 * On success, increment the count of good writes for our top-level vdev. 1063 */ 1064static void 1065vdev_label_sync_done(zio_t *zio) 1066{ 1067 uint64_t *good_writes = zio->io_private; 1068 1069 if (zio->io_error == 0) |
1070 atomic_add_64(good_writes, 1); | 1070 atomic_inc_64(good_writes); |
1071} 1072 1073/* 1074 * If there weren't enough good writes, indicate failure to the parent. 1075 */ 1076static void 1077vdev_label_sync_top_done(zio_t *zio) 1078{ --- 214 unchanged lines hidden --- | 1071} 1072 1073/* 1074 * If there weren't enough good writes, indicate failure to the parent. 1075 */ 1076static void 1077vdev_label_sync_top_done(zio_t *zio) 1078{ --- 214 unchanged lines hidden --- |