summaryrefslogtreecommitdiffstats
path: root/sys/fs/unionfs/union_subr.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-04-10 10:52:19 +0000
committerrwatson <rwatson@FreeBSD.org>2009-04-10 10:52:19 +0000
commitfba90f2e037dd422279bc69cd0265942148c0022 (patch)
tree60ec81c960bc903ee02261b0b6fa507c405c3d75 /sys/fs/unionfs/union_subr.c
parenta5ecda6fd6358d3ff6a18998f98482335fb6c884 (diff)
downloadFreeBSD-src-fba90f2e037dd422279bc69cd0265942148c0022.zip
FreeBSD-src-fba90f2e037dd422279bc69cd0265942148c0022.tar.gz
Remove VOP_LEASE and supporting functions. This hasn't been used since
the removal of NQNFS, but was left in in case it was required for NFSv4. Since our new NFSv4 client and server can't use it for their requirements, GC the old mechanism, as well as other unused lease- related code and interfaces. Due to its impact on kernel programming and binary interfaces, this change should not be MFC'd. Proposed by: jeff Reviewed by: jeff Discussed with: rmacklem, zach loafman @ isilon
Diffstat (limited to 'sys/fs/unionfs/union_subr.c')
-rw-r--r--sys/fs/unionfs/union_subr.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/fs/unionfs/union_subr.c b/sys/fs/unionfs/union_subr.c
index beaef2f..69165e3 100644
--- a/sys/fs/unionfs/union_subr.c
+++ b/sys/fs/unionfs/union_subr.c
@@ -805,10 +805,6 @@ unionfs_mkshadowdir(struct unionfs_mount *ump, struct vnode *udvp,
if ((error = vn_start_write(udvp, &mp, V_WAIT | PCATCH)))
goto unionfs_mkshadowdir_free_out;
- if ((error = VOP_LEASE(udvp, td, cn.cn_cred, LEASE_WRITE))) {
- vn_finished_write(mp);
- goto unionfs_mkshadowdir_free_out;
- }
unionfs_create_uppervattr_core(ump, &lva, &va, td);
error = VOP_MKDIR(udvp, &uvp, &cn, &va);
@@ -874,8 +870,7 @@ unionfs_mkwhiteout(struct vnode *dvp, struct componentname *cnp,
if ((error = vn_start_write(dvp, &mp, V_WAIT | PCATCH)))
goto unionfs_mkwhiteout_free_out;
- if (!(error = VOP_LEASE(dvp, td, td->td_ucred, LEASE_WRITE)))
- error = VOP_WHITEOUT(dvp, &cn, CREATE);
+ error = VOP_WHITEOUT(dvp, &cn, CREATE);
vn_finished_write(mp);
@@ -949,9 +944,6 @@ unionfs_vn_create_on_upper(struct vnode **vpp, struct vnode *udvp,
goto unionfs_vn_create_on_upper_free_out1;
}
- if ((error = VOP_LEASE(udvp, td, cred, LEASE_WRITE)) != 0)
- goto unionfs_vn_create_on_upper_free_out1;
-
if ((error = VOP_CREATE(udvp, &vp, &cn, uvap)) != 0)
goto unionfs_vn_create_on_upper_free_out1;
@@ -999,10 +991,6 @@ unionfs_copyfile_core(struct vnode *lvp, struct vnode *uvp,
uio.uio_segflg = UIO_SYSSPACE;
uio.uio_offset = 0;
- if ((error = VOP_LEASE(lvp, td, cred, LEASE_READ)) != 0)
- return (error);
- if ((error = VOP_LEASE(uvp, td, cred, LEASE_WRITE)) != 0)
- return (error);
buf = malloc(MAXBSIZE, M_TEMP, M_WAITOK);
while (error == 0) {
OpenPOWER on IntegriCloud