Deleted Added
full compact
nfs_srvsubs.c (157391) nfs_srvsubs.c (159268)
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_subs.c 8.8 (Berkeley) 5/22/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_subs.c 8.8 (Berkeley) 5/22/95
33 */
34
35#include <sys/cdefs.h>
36__FBSDID("$FreeBSD: head/sys/nfsserver/nfs_srvsubs.c 157391 2006-04-02 04:24:57Z cel $");
36__FBSDID("$FreeBSD: head/sys/nfsserver/nfs_srvsubs.c 159268 2006-06-05 14:48:02Z kib $");
37
38/*
39 * These functions support the macros and help fiddle mbuf chains for
40 * the nfs op functions. They do things like create the rpc header and
41 * copy data between mbuf chains and uio lists.
42 */
43
44#include "opt_inet6.h"

--- 826 unchanged lines hidden (view full) ---

871 ndp->ni_dvp = ndp->ni_rootdir;
872 VREF(ndp->ni_dvp);
873 }
874 ndp->ni_startdir = ndp->ni_dvp;
875 ndp->ni_dvp = NULL;
876 }
877 if (!lockleaf)
878 cnp->cn_flags &= ~LOCKLEAF;
37
38/*
39 * These functions support the macros and help fiddle mbuf chains for
40 * the nfs op functions. They do things like create the rpc header and
41 * copy data between mbuf chains and uio lists.
42 */
43
44#include "opt_inet6.h"

--- 826 unchanged lines hidden (view full) ---

871 ndp->ni_dvp = ndp->ni_rootdir;
872 VREF(ndp->ni_dvp);
873 }
874 ndp->ni_startdir = ndp->ni_dvp;
875 ndp->ni_dvp = NULL;
876 }
877 if (!lockleaf)
878 cnp->cn_flags &= ~LOCKLEAF;
879 if (cnp->cn_flags & GIANTHELD) {
880 mtx_unlock(&Giant);
881 cnp->cn_flags &= ~GIANTHELD;
882 }
879
880 /*
881 * nfs_namei() guarentees that fields will not contain garbage
882 * whether an error occurs or not. This allows the caller to track
883 * cleanup state trivially.
884 */
885out:
886 if (error) {

--- 590 unchanged lines hidden ---
883
884 /*
885 * nfs_namei() guarentees that fields will not contain garbage
886 * whether an error occurs or not. This allows the caller to track
887 * cleanup state trivially.
888 */
889out:
890 if (error) {

--- 590 unchanged lines hidden ---