nfs_vnops.c (144299) | nfs_vnops.c (145006) |
---|---|
1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 19 unchanged lines hidden (view full) --- 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95 33 */ 34 35#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 19 unchanged lines hidden (view full) --- 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95 33 */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/nfsclient/nfs_vnops.c 144299 2005-03-29 13:09:42Z jeff $"); | 36__FBSDID("$FreeBSD: head/sys/nfsclient/nfs_vnops.c 145006 2005-04-13 10:59:09Z jeff $"); |
37 38/* 39 * vnode op calls for Sun NFS version 2 and 3 40 */ 41 42#include "opt_inet.h" 43 44#include <sys/param.h> --- 810 unchanged lines hidden (view full) --- 855 m_freem(mrep); 856 cnp->cn_flags |= SAVENAME; 857 return (0); 858 } 859 860 if (flags & ISDOTDOT) { 861 VOP_UNLOCK(dvp, 0, td); 862 error = nfs_nget(dvp->v_mount, fhp, fhsize, &np); | 37 38/* 39 * vnode op calls for Sun NFS version 2 and 3 40 */ 41 42#include "opt_inet.h" 43 44#include <sys/param.h> --- 810 unchanged lines hidden (view full) --- 855 m_freem(mrep); 856 cnp->cn_flags |= SAVENAME; 857 return (0); 858 } 859 860 if (flags & ISDOTDOT) { 861 VOP_UNLOCK(dvp, 0, td); 862 error = nfs_nget(dvp->v_mount, fhp, fhsize, &np); |
863 if (error) { 864 vn_lock(dvp, LK_EXCLUSIVE | LK_RETRY, td); | 863 vn_lock(dvp, LK_EXCLUSIVE | LK_RETRY, td); 864 if (error) |
865 return (error); | 865 return (error); |
866 } | |
867 newvp = NFSTOV(np); 868 } else if (NFS_CMPFH(np, fhp, fhsize)) { 869 VREF(dvp); 870 newvp = dvp; 871 } else { 872 error = nfs_nget(dvp->v_mount, fhp, fhsize, &np); 873 if (error) { 874 m_freem(mrep); --- 2237 unchanged lines hidden --- | 866 newvp = NFSTOV(np); 867 } else if (NFS_CMPFH(np, fhp, fhsize)) { 868 VREF(dvp); 869 newvp = dvp; 870 } else { 871 error = nfs_nget(dvp->v_mount, fhp, fhsize, &np); 872 if (error) { 873 m_freem(mrep); --- 2237 unchanged lines hidden --- |