nfs_clrpcops.c (229802) | nfs_clrpcops.c (230394) |
---|---|
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 --- 18 unchanged lines hidden (view full) --- 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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 */ 33 34#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 --- 18 unchanged lines hidden (view full) --- 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/fs/nfsclient/nfs_clrpcops.c 229802 2012-01-08 01:54:46Z rmacklem $"); | 35__FBSDID("$FreeBSD: head/sys/fs/nfsclient/nfs_clrpcops.c 230394 2012-01-20 20:02:01Z jhb $"); |
36 37/* 38 * Rpc op calls, generally called from the vnode op calls or through the 39 * buffer cache, for NFS v2, 3 and 4. 40 * These do not normally make any changes to vnode arguments or use 41 * structures that might change between the VFS variants. The returned 42 * arguments are all at the end, after the NFSPROC_T *p one. 43 */ --- 3268 unchanged lines hidden (view full) --- 3312 vrele(newvp); 3313 goto nfsmout; 3314 } 3315 dp->d_type = 3316 vtonfs_dtype(np->n_vattr.na_type); 3317 ndp->ni_vp = newvp; 3318 NFSCNHASH(cnp, HASHINIT); 3319 if (cnp->cn_namelen <= NCHNAMLEN) { | 36 37/* 38 * Rpc op calls, generally called from the vnode op calls or through the 39 * buffer cache, for NFS v2, 3 and 4. 40 * These do not normally make any changes to vnode arguments or use 41 * structures that might change between the VFS variants. The returned 42 * arguments are all at the end, after the NFSPROC_T *p one. 43 */ --- 3268 unchanged lines hidden (view full) --- 3312 vrele(newvp); 3313 goto nfsmout; 3314 } 3315 dp->d_type = 3316 vtonfs_dtype(np->n_vattr.na_type); 3317 ndp->ni_vp = newvp; 3318 NFSCNHASH(cnp, HASHINIT); 3319 if (cnp->cn_namelen <= NCHNAMLEN) { |
3320 np->n_ctime = np->n_vattr.na_ctime; 3321 cache_enter(ndp->ni_dvp,ndp->ni_vp,cnp); | 3320 cache_enter_time(ndp->ni_dvp, 3321 ndp->ni_vp, cnp, 3322 &nfsva.na_ctime); |
3322 } 3323 if (unlocknewvp) 3324 vput(newvp); 3325 else 3326 vrele(newvp); 3327 newvp = NULLVP; 3328 } 3329 } --- 892 unchanged lines hidden --- | 3323 } 3324 if (unlocknewvp) 3325 vput(newvp); 3326 else 3327 vrele(newvp); 3328 newvp = NULLVP; 3329 } 3330 } --- 892 unchanged lines hidden --- |