vfs_cache.c (147450) | vfs_cache.c (155385) |
---|---|
1/*- 2 * Copyright (c) 1989, 1993, 1995 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Poul-Henning Kamp of the FreeBSD Project. 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 * @(#)vfs_cache.c 8.5 (Berkeley) 3/22/95 33 */ 34 35#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1989, 1993, 1995 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Poul-Henning Kamp of the FreeBSD Project. 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 * @(#)vfs_cache.c 8.5 (Berkeley) 3/22/95 33 */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/kern/vfs_cache.c 147450 2005-06-17 01:05:13Z jeff $"); | 36__FBSDID("$FreeBSD: head/sys/kern/vfs_cache.c 155385 2006-02-06 10:15:27Z jeff $"); |
37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/kernel.h> 41#include <sys/lock.h> 42#include <sys/mutex.h> 43#include <sys/sysctl.h> 44#include <sys/mount.h> --- 774 unchanged lines hidden (view full) --- 819 return (ENOMEM); 820 } 821 *--bp = '/'; 822 slash_prefixed = 1; 823 vp = ncp->nc_dvp; 824 } 825 while (vp != rdir && vp != rootvnode) { 826 if (vp->v_vflag & VV_ROOT) { | 37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/kernel.h> 41#include <sys/lock.h> 42#include <sys/mutex.h> 43#include <sys/sysctl.h> 44#include <sys/mount.h> --- 774 unchanged lines hidden (view full) --- 819 return (ENOMEM); 820 } 821 *--bp = '/'; 822 slash_prefixed = 1; 823 vp = ncp->nc_dvp; 824 } 825 while (vp != rdir && vp != rootvnode) { 826 if (vp->v_vflag & VV_ROOT) { |
827 if (vp->v_mount == NULL) { /* forced unmount */ | 827 if (vp->v_iflag & VI_DOOMED) { /* forced unmount */ |
828 error = EBADF; 829 break; 830 } 831 vp = vp->v_mount->mnt_vnodecovered; 832 continue; 833 } 834 if (vp->v_dd == NULL) { 835 numfullpathfail1++; --- 40 unchanged lines hidden --- | 828 error = EBADF; 829 break; 830 } 831 vp = vp->v_mount->mnt_vnodecovered; 832 continue; 833 } 834 if (vp->v_dd == NULL) { 835 numfullpathfail1++; --- 40 unchanged lines hidden --- |