]> git.proxmox.com Git - mirror_zfs.git/commit
zfs_ctldir: fix incorrect argument type of rw_destroy
authorhpingfs <101400146+hpingfs@users.noreply.github.com>
Wed, 30 Mar 2022 22:40:31 +0000 (06:40 +0800)
committerGitHub <noreply@github.com>
Wed, 30 Mar 2022 22:40:31 +0000 (15:40 -0700)
commit4d04e41e4def222e454d05d77c3a93057c58f471
treec8c6e5c42f284b876b8fb3ce6eaa417df5984bfd
parentabdcef47d2ef9f38092bcfd3e4a8ec5499244826
zfs_ctldir: fix incorrect argument type of rw_destroy

The argument type of rw_destroy is (krwlock_t *) while currently
krwlock_t is passed in zfs_ctldir.c. This error is hidden because
rw_destroy is defined as ((void) 0) in linux. But anyway, this
mismatch should be fixed.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ping Huang <huangping@smartx.com>
Closes #13272
module/os/linux/zfs/zfs_ctldir.c