Deleted Added
full compact
tmpfs_vnops.c (269173) tmpfs_vnops.c (269176)
1/* $NetBSD: tmpfs_vnops.c,v 1.39 2007/07/23 15:41:01 jmmv Exp $ */
2
3/*-
4 * Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Julio M. Merino Vidal, developed as part of Google's Summer of Code

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

29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 * POSSIBILITY OF SUCH DAMAGE.
31 */
32
33/*
34 * tmpfs vnode interface.
35 */
36#include <sys/cdefs.h>
1/* $NetBSD: tmpfs_vnops.c,v 1.39 2007/07/23 15:41:01 jmmv Exp $ */
2
3/*-
4 * Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Julio M. Merino Vidal, developed as part of Google's Summer of Code

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

29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 * POSSIBILITY OF SUCH DAMAGE.
31 */
32
33/*
34 * tmpfs vnode interface.
35 */
36#include <sys/cdefs.h>
37__FBSDID("$FreeBSD: stable/10/sys/fs/tmpfs/tmpfs_vnops.c 269173 2014-07-28 01:16:07Z kib $");
37__FBSDID("$FreeBSD: stable/10/sys/fs/tmpfs/tmpfs_vnops.c 269176 2014-07-28 01:25:49Z kib $");
38
39#include <sys/param.h>
40#include <sys/fcntl.h>
41#include <sys/lockf.h>
42#include <sys/lock.h>
43#include <sys/namei.h>
44#include <sys/priv.h>
45#include <sys/proc.h>

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

181 error = EPERM;
182 vput(*vpp);
183 *vpp = NULL;
184 goto out;
185 }
186 cnp->cn_flags |= SAVENAME;
187 } else {
188 error = tmpfs_alloc_vp(dvp->v_mount, tnode,
38
39#include <sys/param.h>
40#include <sys/fcntl.h>
41#include <sys/lockf.h>
42#include <sys/lock.h>
43#include <sys/namei.h>
44#include <sys/priv.h>
45#include <sys/proc.h>

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

181 error = EPERM;
182 vput(*vpp);
183 *vpp = NULL;
184 goto out;
185 }
186 cnp->cn_flags |= SAVENAME;
187 } else {
188 error = tmpfs_alloc_vp(dvp->v_mount, tnode,
189 cnp->cn_lkflags, vpp);
189 cnp->cn_lkflags, vpp);
190 if (error != 0)
191 goto out;
190 }
191 }
192 }
193
194 /* Store the result of this lookup in the cache. Avoid this if the
195 * request was for creation, as it does not improve timings on
196 * emprical tests. */
197 if ((cnp->cn_flags & MAKEENTRY) && cnp->cn_nameiop != CREATE)

--- 1232 unchanged lines hidden ---
192 }
193 }
194 }
195
196 /* Store the result of this lookup in the cache. Avoid this if the
197 * request was for creation, as it does not improve timings on
198 * emprical tests. */
199 if ((cnp->cn_flags & MAKEENTRY) && cnp->cn_nameiop != CREATE)

--- 1232 unchanged lines hidden ---