Deleted Added
full compact
null_vnops.c (164248) null_vnops.c (166774)
1/*-
2 * Copyright (c) 1992, 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 * John Heidemann of the UCLA Ficus project.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

31 *
32 * @(#)null_vnops.c 8.6 (Berkeley) 5/27/95
33 *
34 * Ancestors:
35 * @(#)lofs_vnops.c 1.2 (Berkeley) 6/18/92
36 * ...and...
37 * @(#)null_vnodeops.c 1.20 92/07/07 UCLA Ficus project
38 *
1/*-
2 * Copyright (c) 1992, 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 * John Heidemann of the UCLA Ficus project.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

31 *
32 * @(#)null_vnops.c 8.6 (Berkeley) 5/27/95
33 *
34 * Ancestors:
35 * @(#)lofs_vnops.c 1.2 (Berkeley) 6/18/92
36 * ...and...
37 * @(#)null_vnodeops.c 1.20 92/07/07 UCLA Ficus project
38 *
39 * $FreeBSD: head/sys/fs/nullfs/null_vnops.c 164248 2006-11-13 05:51:22Z kmacy $
39 * $FreeBSD: head/sys/fs/nullfs/null_vnops.c 166774 2007-02-15 22:08:35Z pjd $
40 */
41
42/*
43 * Null Layer
44 *
45 * (See mount_nullfs(8) for more information.)
46 *
47 * The null layer duplicates a portion of the filesystem

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

703 vdrop(lowervp);
704 } else {
705 VI_UNLOCK(vp);
706 *(ap->a_mpp) = NULL;
707 }
708 return (0);
709}
710
40 */
41
42/*
43 * Null Layer
44 *
45 * (See mount_nullfs(8) for more information.)
46 *
47 * The null layer duplicates a portion of the filesystem

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

703 vdrop(lowervp);
704 } else {
705 VI_UNLOCK(vp);
706 *(ap->a_mpp) = NULL;
707 }
708 return (0);
709}
710
711static int
712null_vptofh(struct vop_vptofh_args *ap)
713{
714 struct vnode *lvp;
715
716 lvp = NULLVPTOLOWERVP(ap->a_vp);
717 return VOP_VPTOFH(lvp, ap->a_fhp);
718}
719
711/*
712 * Global vfs data structures
713 */
714struct vop_vector null_vnodeops = {
715 .vop_bypass = null_bypass,
716 .vop_access = null_access,
717 .vop_bmap = VOP_EOPNOTSUPP,
718 .vop_getattr = null_getattr,

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

723 .vop_lookup = null_lookup,
724 .vop_open = null_open,
725 .vop_print = null_print,
726 .vop_reclaim = null_reclaim,
727 .vop_rename = null_rename,
728 .vop_setattr = null_setattr,
729 .vop_strategy = VOP_EOPNOTSUPP,
730 .vop_unlock = null_unlock,
720/*
721 * Global vfs data structures
722 */
723struct vop_vector null_vnodeops = {
724 .vop_bypass = null_bypass,
725 .vop_access = null_access,
726 .vop_bmap = VOP_EOPNOTSUPP,
727 .vop_getattr = null_getattr,

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

732 .vop_lookup = null_lookup,
733 .vop_open = null_open,
734 .vop_print = null_print,
735 .vop_reclaim = null_reclaim,
736 .vop_rename = null_rename,
737 .vop_setattr = null_setattr,
738 .vop_strategy = VOP_EOPNOTSUPP,
739 .vop_unlock = null_unlock,
740 .vop_vptofh = null_vptofh,
731};
741};