diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2020-01-03 22:29:58 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2020-01-03 22:29:58 +0000 |
commit | b249ce48ea5560afdcff57e72a9880b7d3132434 (patch) | |
tree | af24958629e49de8db56734a7389a612627230d5 /sys/cam/ctl | |
parent | 4a20fe31c373d6a6c81bd6205d210bd893dc8068 (diff) | |
download | src-b249ce48ea5560afdcff57e72a9880b7d3132434.tar.gz src-b249ce48ea5560afdcff57e72a9880b7d3132434.zip |
vfs: drop the mostly unused flags argument from VOP_UNLOCK
Filesystems which want to use it in limited capacity can employ the
VOP_UNLOCK_FLAGS macro.
Reviewed by: kib (previous version)
Differential Revision: https://reviews.freebsd.org/D21427
Notes
Notes:
svn path=/head/; revision=356337
Diffstat (limited to 'sys/cam/ctl')
-rw-r--r-- | sys/cam/ctl/ctl_backend_block.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/cam/ctl/ctl_backend_block.c b/sys/cam/ctl/ctl_backend_block.c index ae3a322c394e..d8e0c751de39 100644 --- a/sys/cam/ctl/ctl_backend_block.c +++ b/sys/cam/ctl/ctl_backend_block.c @@ -592,7 +592,7 @@ ctl_be_block_flush_file(struct ctl_be_block_lun *be_lun, vn_lock(be_lun->vn, lock_flags | LK_RETRY); error = VOP_FSYNC(be_lun->vn, beio->io_arg ? MNT_NOWAIT : MNT_WAIT, curthread); - VOP_UNLOCK(be_lun->vn, 0); + VOP_UNLOCK(be_lun->vn); vn_finished_write(mountpoint); @@ -685,7 +685,7 @@ ctl_be_block_dispatch_file(struct ctl_be_block_lun *be_lun, */ error = VOP_READ(be_lun->vn, &xuio, flags, file_data->cred); - VOP_UNLOCK(be_lun->vn, 0); + VOP_UNLOCK(be_lun->vn); SDT_PROBE0(cbb, , read, file_done); if (error == 0 && xuio.uio_resid > 0) { /* @@ -732,7 +732,7 @@ ctl_be_block_dispatch_file(struct ctl_be_block_lun *be_lun, * cache before returning. */ error = VOP_WRITE(be_lun->vn, &xuio, flags, file_data->cred); - VOP_UNLOCK(be_lun->vn, 0); + VOP_UNLOCK(be_lun->vn); vn_finished_write(mountpoint); SDT_PROBE0(cbb, , write, file_done); @@ -810,7 +810,7 @@ ctl_be_block_gls_file(struct ctl_be_block_lun *be_lun, off = be_lun->size_bytes; } } - VOP_UNLOCK(be_lun->vn, 0); + VOP_UNLOCK(be_lun->vn); data = (struct scsi_get_lba_status_data *)io->scsiio.kern_data_ptr; scsi_u64to8b(lbalen->lba, data->descr[0].addr); @@ -845,7 +845,7 @@ ctl_be_block_getattr_file(struct ctl_be_block_lun *be_lun, const char *attrname) val = statfs.f_bavail * statfs.f_bsize / be_lun->cbe_lun.blocksize; } - VOP_UNLOCK(be_lun->vn, 0); + VOP_UNLOCK(be_lun->vn); return (val); } @@ -2188,7 +2188,7 @@ again: snprintf(req->error_str, sizeof(req->error_str), "%s is not a disk or plain file", be_lun->dev_path); } - VOP_UNLOCK(be_lun->vn, 0); + VOP_UNLOCK(be_lun->vn); if (error != 0) ctl_be_block_close(be_lun); @@ -2604,7 +2604,7 @@ ctl_be_block_modify(struct ctl_be_block_softc *softc, struct ctl_lun_req *req) else if (be_lun->vn->v_type == VREG) { vn_lock(be_lun->vn, LK_SHARED | LK_RETRY); error = ctl_be_block_open_file(be_lun, req); - VOP_UNLOCK(be_lun->vn, 0); + VOP_UNLOCK(be_lun->vn); } else error = EINVAL; if ((cbe_lun->flags & CTL_LUN_FLAG_NO_MEDIA) && |