]> git.proxmox.com Git - mirror_zfs.git/commit
Simplify spa_sync by breaking it up to smaller functions
authorSerapheim Dimitropoulos <serapheimd@gmail.com>
Fri, 18 Jan 2019 17:50:16 +0000 (09:50 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 18 Jan 2019 17:50:16 +0000 (09:50 -0800)
commit8dc2197b7b1e4d7ebc1420ea30e51c6541f1d834
tree90889679fd877ddc795cba1225d26aa64668c337
parentce5fb2a7c6dfaa0f305350225e064e9f536bd5a4
Simplify spa_sync by breaking it up to smaller functions

The point of this refactoring is to break the high-level conceptual
steps of spa_sync() to their own helper functions. In general large
functions can enhance readability if structured well, but in this
case the amount of conceptual steps taken could use the help of
helper functions.

Reviewed-by: Matt Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Closes #8293
module/zfs/spa.c
module/zfs/vdev_removal.c