Deleted Added
full compact
pseudofs_vnops.c (144208) pseudofs_vnops.c (145006)
1/*-
2 * Copyright (c) 2001 Dag-Erling Co�dan Sm�rgrav
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

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

22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2001 Dag-Erling Co�dan Sm�rgrav
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

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

22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/fs/pseudofs/pseudofs_vnops.c 144208 2005-03-28 09:34:36Z jeff $");
30__FBSDID("$FreeBSD: head/sys/fs/pseudofs/pseudofs_vnops.c 145006 2005-04-13 10:59:09Z jeff $");
31
32#include "opt_pseudofs.h"
33
34#include <sys/param.h>
35#include <sys/kernel.h>
36#include <sys/systm.h>
37#include <sys/ctype.h>
38#include <sys/dirent.h>

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

408 error = ENOENT;
409 goto failed;
410 }
411
412 error = pfs_vncache_alloc(vn->v_mount, vpp, pn, pid);
413 if (error)
414 goto failed;
415
31
32#include "opt_pseudofs.h"
33
34#include <sys/param.h>
35#include <sys/kernel.h>
36#include <sys/systm.h>
37#include <sys/ctype.h>
38#include <sys/dirent.h>

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

408 error = ENOENT;
409 goto failed;
410 }
411
412 error = pfs_vncache_alloc(vn->v_mount, vpp, pn, pid);
413 if (error)
414 goto failed;
415
416 if (cnp->cn_flags & ISDOTDOT)
417 vn_lock(vn, LK_EXCLUSIVE|LK_RETRY, cnp->cn_thread);
416 if (cnp->cn_flags & MAKEENTRY)
417 cache_enter(vn, *vpp, cnp);
418 PFS_RETURN (0);
419 failed:
420 if (cnp->cn_flags & ISDOTDOT)
421 vn_lock(vn, LK_EXCLUSIVE|LK_RETRY, cnp->cn_thread);
422 PFS_RETURN(error);
423}

--- 421 unchanged lines hidden ---
418 if (cnp->cn_flags & MAKEENTRY)
419 cache_enter(vn, *vpp, cnp);
420 PFS_RETURN (0);
421 failed:
422 if (cnp->cn_flags & ISDOTDOT)
423 vn_lock(vn, LK_EXCLUSIVE|LK_RETRY, cnp->cn_thread);
424 PFS_RETURN(error);
425}

--- 421 unchanged lines hidden ---