Lines Matching refs:vn

162 	struct vnode *vn;  member
620 (void) vn_start_write(be_lun->vn, &mountpoint, V_WAIT); in ctl_be_block_flush_file()
622 vn_lock(be_lun->vn, vn_lktype_write(mountpoint, be_lun->vn) | in ctl_be_block_flush_file()
624 error = VOP_FSYNC(be_lun->vn, beio->io_arg ? MNT_NOWAIT : MNT_WAIT, in ctl_be_block_flush_file()
626 VOP_UNLOCK(be_lun->vn); in ctl_be_block_flush_file()
697 vn_lock(be_lun->vn, LK_SHARED | LK_RETRY); in ctl_be_block_dispatch_file()
719 error = VOP_READ(be_lun->vn, &xuio, flags, file_data->cred); in ctl_be_block_dispatch_file()
721 VOP_UNLOCK(be_lun->vn); in ctl_be_block_dispatch_file()
742 (void)vn_start_write(be_lun->vn, &mountpoint, V_WAIT); in ctl_be_block_dispatch_file()
743 vn_lock(be_lun->vn, vn_lktype_write(mountpoint, in ctl_be_block_dispatch_file()
744 be_lun->vn) | LK_RETRY); in ctl_be_block_dispatch_file()
761 error = VOP_WRITE(be_lun->vn, &xuio, flags, file_data->cred); in ctl_be_block_dispatch_file()
762 VOP_UNLOCK(be_lun->vn); in ctl_be_block_dispatch_file()
824 vn_lock(be_lun->vn, LK_SHARED | LK_RETRY); in ctl_be_block_gls_file()
825 error = VOP_IOCTL(be_lun->vn, FIOSEEKHOLE, &off, in ctl_be_block_gls_file()
830 error = VOP_IOCTL(be_lun->vn, FIOSEEKDATA, &off, in ctl_be_block_gls_file()
839 VOP_UNLOCK(be_lun->vn); in ctl_be_block_gls_file()
859 if (be_lun->vn == NULL) in ctl_be_block_getattr_file()
861 vn_lock(be_lun->vn, LK_SHARED | LK_RETRY); in ctl_be_block_getattr_file()
863 error = VOP_GETATTR(be_lun->vn, &vattr, curthread->td_ucred); in ctl_be_block_getattr_file()
868 !VN_IS_DOOMED(be_lun->vn)) { in ctl_be_block_getattr_file()
869 error = VFS_STATFS(be_lun->vn->v_mount, &statfs); in ctl_be_block_getattr_file()
874 VOP_UNLOCK(be_lun->vn); in ctl_be_block_getattr_file()
898 (void)vn_start_write(be_lun->vn, &mp, V_WAIT); in ctl_be_block_unmap_file()
899 vn_lock(be_lun->vn, vn_lktype_write(mp, be_lun->vn) | LK_RETRY); in ctl_be_block_unmap_file()
912 error = vn_deallocate(be_lun->vn, &off, &len, in ctl_be_block_unmap_file()
922 error = vn_deallocate(be_lun->vn, &off, &len, 0, in ctl_be_block_unmap_file()
925 VOP_UNLOCK(be_lun->vn); in ctl_be_block_unmap_file()
1000 csw = devvn_refthread(be_lun->vn, &dev, &ref); in ctl_be_block_dispatch_zvol()
1075 csw = devvn_refthread(be_lun->vn, &dev, &ref); in ctl_be_block_gls_zvol()
1140 csw = devvn_refthread(be_lun->vn, &dev, &ref); in ctl_be_block_flush_dev()
1162 csw = devvn_refthread(be_lun->vn, &dev, &ref); in ctl_be_block_unmap_dev_range()
1241 csw = devvn_refthread(be_lun->vn, &dev, &ref); in ctl_be_block_dispatch_dev()
1313 csw = devvn_refthread(be_lun->vn, &dev, &ref); in ctl_be_block_getattr_dev()
2234 error = VOP_GETATTR(be_lun->vn, &vattr, curthread->td_ucred); in ctl_be_block_open_file()
2242 error = VOP_PATHCONF(be_lun->vn, _PC_DEALLOC_PRESENT, &pconf); in ctl_be_block_open_file()
2334 csw = devvn_refthread(be_lun->vn, &dev, &ref); in ctl_be_block_open_dev()
2503 if (be_lun->vn) { in ctl_be_block_close()
2507 (void)vn_close(be_lun->vn, flags, NOCRED, curthread); in ctl_be_block_close()
2508 be_lun->vn = NULL; in ctl_be_block_close()
2596 be_lun->vn = nd.ni_vp; in ctl_be_block_open()
2599 if (vn_isdisk_error(be_lun->vn, &error)) { in ctl_be_block_open()
2601 } else if (be_lun->vn->v_type == VREG) { in ctl_be_block_open()
2608 VOP_UNLOCK(be_lun->vn); in ctl_be_block_open()
2712 if (be_lun->vn == NULL) in ctl_be_block_create()
2861 if (be_lun->vn != NULL) { in ctl_be_block_rm()
2962 if (be_lun->vn == NULL) in ctl_be_block_modify()
2964 else if (vn_isdisk_error(be_lun->vn, &error)) in ctl_be_block_modify()
2966 else if (be_lun->vn->v_type == VREG) { in ctl_be_block_modify()
2967 vn_lock(be_lun->vn, LK_SHARED | LK_RETRY); in ctl_be_block_modify()
2969 VOP_UNLOCK(be_lun->vn); in ctl_be_block_modify()
2973 be_lun->vn != NULL) { in ctl_be_block_modify()
2977 be_lun->vn == NULL) { in ctl_be_block_modify()
2983 if (be_lun->vn != NULL) { in ctl_be_block_modify()
3075 if ((cdb->how & SSS_LOEJ) && be_lun->vn == NULL) { in ctl_be_block_scsi_config_write()
3093 if (be_lun->vn != NULL) in ctl_be_block_scsi_config_write()