aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/ctl
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-08-19 02:51:17 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-08-19 02:51:17 +0000
commit7ad2a82da2b51b8c803c82a460e513f58f5a1737 (patch)
treef85ab3e67dbe25a090eeb5177a3cf89362177073 /sys/cam/ctl
parent4b3208a97bce21a6897d6e32536a30a9af3179b5 (diff)
downloadsrc-7ad2a82da2b51b8c803c82a460e513f58f5a1737.tar.gz
src-7ad2a82da2b51b8c803c82a460e513f58f5a1737.zip
vfs: drop the error parameter from vn_isdisk, introduce vn_isdisk_error
Most consumers pass NULL.
Notes
Notes: svn path=/head/; revision=364372
Diffstat (limited to 'sys/cam/ctl')
-rw-r--r--sys/cam/ctl/ctl_backend_block.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/cam/ctl/ctl_backend_block.c b/sys/cam/ctl/ctl_backend_block.c
index 2953a8fb6e32..643be93d8318 100644
--- a/sys/cam/ctl/ctl_backend_block.c
+++ b/sys/cam/ctl/ctl_backend_block.c
@@ -2184,7 +2184,7 @@ again:
be_lun->vn = nd.ni_vp;
/* We only support disks and files. */
- if (vn_isdisk(be_lun->vn, &error)) {
+ if (vn_isdisk_error(be_lun->vn, &error)) {
error = ctl_be_block_open_dev(be_lun, req);
} else if (be_lun->vn->v_type == VREG) {
error = ctl_be_block_open_file(be_lun, req);
@@ -2547,7 +2547,7 @@ ctl_be_block_modify(struct ctl_be_block_softc *softc, struct ctl_lun_req *req)
control_softc->ha_mode == CTL_HA_MODE_SER_ONLY) {
if (be_lun->vn == NULL)
error = ctl_be_block_open(be_lun, req);
- else if (vn_isdisk(be_lun->vn, &error))
+ else if (vn_isdisk_error(be_lun->vn, &error))
error = ctl_be_block_open_dev(be_lun, req);
else if (be_lun->vn->v_type == VREG) {
vn_lock(be_lun->vn, LK_SHARED | LK_RETRY);