diff options
author | gibbs <gibbs@FreeBSD.org> | 2013-09-21 03:52:08 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 2013-09-21 03:52:08 +0000 |
commit | 82601b02ea0b96db084c04758abf7f43d57a7098 (patch) | |
tree | f6879d37fbe2dd05f91957daba2acef5d1b5701c /sys/cddl/contrib/opensolaris/uts | |
parent | 1944aacf1567f91ea0698d956de0d065aef54432 (diff) | |
download | FreeBSD-src-82601b02ea0b96db084c04758abf7f43d57a7098.zip FreeBSD-src-82601b02ea0b96db084c04758abf7f43d57a7098.tar.gz |
Optimize the block size used on ZFS cache devices as is already done
for data and log devices.
Reported by: Dmitryy Makarov
Submitted by: smh
Reviewed by: gibbs
Approved by: re (delphij)
MFC after: 2 weeks
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c index cd3f8ac..e76b348 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c @@ -5387,6 +5387,8 @@ l2arc_add_vdev(spa_t *spa, vdev_t *vd) ASSERT(!l2arc_vdev_present(vd)); + vdev_ashift_optimize(vd); + /* * Create a new l2arc device entry. */ |