]> git.proxmox.com Git - mirror_zfs.git/commit
OpenZFS 9328 - zap code can take advantage of c99
authorMatthew Ahrens <mahrens@delphix.com>
Wed, 30 May 2018 18:16:54 +0000 (11:16 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 31 May 2018 17:53:11 +0000 (10:53 -0700)
commitd2a12f9e2a94bdd09f160bdf98feda21203a7e74
tree02931304436b243313c6b8f44fa3559f208f62ad
parent74d42600d8d391dab5c57e87e81f97e0ca07b7b2
OpenZFS 9328 - zap code can take advantage of c99

The ZAP code was written before we allowed c99 in the Solaris kernel. We
should change it to take advantage of being able to declare variables where
they are first used. This reduces variable scope and means less scrolling
to find the type of variables.

Authored by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Steve Gonczi <steve.gonczi@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Approved by: Dan McDonald <danmcd@joyent.com>
Ported-by: Brian Behlendorf <behlendorf1@llnl.gov>
OpenZFS-issue: https://illumos.org/issues/9328
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/76ead05
Closes #7578
module/zfs/zap.c
module/zfs/zap_leaf.c
module/zfs/zap_micro.c