Skip to content

Commit 0e2eb91

Browse files
authored
Merge branch 'master' into txg_register_callbacks_comment
2 parents 3676770 + 6187b19 commit 0e2eb91

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

include/os/freebsd/spl/sys/simd.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
#define kfpu_fini() do {} while (0)
5151
#endif
5252

53-
#define simd_stat_init() 0
54-
#define simd_stat_fini() 0
53+
#define simd_stat_init() do {} while (0)
54+
#define simd_stat_fini() do {} while (0)
5555

5656
#endif

module/os/freebsd/zfs/zio_crypt.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1686,11 +1686,10 @@ zio_do_crypt_data(boolean_t encrypt, zio_crypt_key_t *key,
16861686
freebsd_crypt_session_t *tmpl = NULL;
16871687
uint8_t *authbuf = NULL;
16881688

1689-
1689+
memset(&puio_s, 0, sizeof (puio_s));
1690+
memset(&cuio_s, 0, sizeof (cuio_s));
16901691
zfs_uio_init(&puio, &puio_s);
16911692
zfs_uio_init(&cuio, &cuio_s);
1692-
memset(GET_UIO_STRUCT(&puio), 0, sizeof (struct uio));
1693-
memset(GET_UIO_STRUCT(&cuio), 0, sizeof (struct uio));
16941693

16951694
#ifdef FCRYPTO_DEBUG
16961695
printf("%s(%s, %p, %p, %d, %p, %p, %u, %s, %p, %p, %p)\n",

module/zfs/vdev.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2205,10 +2205,11 @@ vdev_open(vdev_t *vd)
22052205
vd->vdev_max_asize = max_asize;
22062206

22072207
/*
2208-
* If the vdev_ashift was not overridden at creation time,
2208+
* If the vdev_ashift was not overridden at creation time
2209+
* (0) or the override value is impossible for the device,
22092210
* then set it the logical ashift and optimize the ashift.
22102211
*/
2211-
if (vd->vdev_ashift == 0) {
2212+
if (vd->vdev_ashift < vd->vdev_logical_ashift) {
22122213
vd->vdev_ashift = vd->vdev_logical_ashift;
22132214

22142215
if (vd->vdev_logical_ashift > ASHIFT_MAX) {

0 commit comments

Comments
 (0)