]> git.proxmox.com Git - mirror_zfs.git/commit - module/os/linux/zfs/zfs_vnops_os.c
Use SET_ERROR for constant non-zero return codes
authorNed Bass <bass6@llnl.gov>
Thu, 3 Aug 2017 04:16:12 +0000 (21:16 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 3 Aug 2017 04:16:12 +0000 (21:16 -0700)
commitecb2b7dc7f8f7273c215fb30c984bde08e75b852
tree55e26ef1e29163fba495ba517d8133d475169651
parent6710381680b0f551c37627e3a5a4886ccf99983f
Use SET_ERROR for constant non-zero return codes

Update many return and assignment statements to follow the convention
of using the SET_ERROR macro when returning a hard-coded non-zero
value from a function. This aids debugging by recording the error
codes in the debug log.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Signed-off-by: Ned Bass <bass6@llnl.gov>
Closes #6441
18 files changed:
module/zfs/arc.c
module/zfs/blkptr.c
module/zfs/dbuf_stats.c
module/zfs/dmu_send.c
module/zfs/dmu_tx.c
module/zfs/dnode.c
module/zfs/dsl_prop.c
module/zfs/dsl_scan.c
module/zfs/fm.c
module/zfs/vdev_disk.c
module/zfs/vdev_label.c
module/zfs/zap.c
module/zfs/zap_leaf.c
module/zfs/zfs_ctldir.c
module/zfs/zfs_ioctl.c
module/zfs/zfs_sa.c
module/zfs/zfs_vnops.c
module/zfs/zfs_znode.c