udf_vnops.c (175202) | udf_vnops.c (175294) |
---|---|
1/*- 2 * Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/fs/udf/udf_vnops.c 175202 2008-01-10 01:10:58Z attilio $ | 26 * $FreeBSD: head/sys/fs/udf/udf_vnops.c 175294 2008-01-13 14:44:15Z attilio $ |
27 */ 28 29/* udf_vnops.c */ 30/* Take care of the vnode side of things */ 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/namei.h> --- 915 unchanged lines hidden (view full) --- 950 if (error) { 951 udf_closedir(ds); 952 return (error); 953 } 954 955 /* Did we have a match? */ 956 if (id) { 957 if (flags & ISDOTDOT) | 27 */ 28 29/* udf_vnops.c */ 30/* Take care of the vnode side of things */ 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/namei.h> --- 915 unchanged lines hidden (view full) --- 950 if (error) { 951 udf_closedir(ds); 952 return (error); 953 } 954 955 /* Did we have a match? */ 956 if (id) { 957 if (flags & ISDOTDOT) |
958 VOP_UNLOCK(dvp, 0, a->a_cnp->cn_thread); | 958 VOP_UNLOCK(dvp, 0); |
959 error = udf_vget(udfmp->im_mountp, id, LK_EXCLUSIVE, &tdp); 960 if (flags & ISDOTDOT) 961 vn_lock(dvp, LK_EXCLUSIVE|LK_RETRY); 962 if (!error) { 963 /* 964 * Remember where this entry was if it's the final 965 * component. 966 */ --- 252 unchanged lines hidden --- | 959 error = udf_vget(udfmp->im_mountp, id, LK_EXCLUSIVE, &tdp); 960 if (flags & ISDOTDOT) 961 vn_lock(dvp, LK_EXCLUSIVE|LK_RETRY); 962 if (!error) { 963 /* 964 * Remember where this entry was if it's the final 965 * component. 966 */ --- 252 unchanged lines hidden --- |