Deleted Added
full compact
vfs_init.c (139804) vfs_init.c (140165)
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
6 * to Berkeley by John Heidemann of the UCLA Ficus project.
7 *
8 * Source: * @(#)i405_init.c 2.10 92/04/27 UCLA Ficus project

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

30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)vfs_init.c 8.3 (Berkeley) 1/4/94
35 */
36
37#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
6 * to Berkeley by John Heidemann of the UCLA Ficus project.
7 *
8 * Source: * @(#)i405_init.c 2.10 92/04/27 UCLA Ficus project

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

30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)vfs_init.c 8.3 (Berkeley) 1/4/94
35 */
36
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD: head/sys/kern/vfs_init.c 139804 2005-01-06 23:35:40Z imp $");
38__FBSDID("$FreeBSD: head/sys/kern/vfs_init.c 140165 2005-01-13 07:53:01Z phk $");
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/kernel.h>
43#include <sys/linker.h>
44#include <sys/mount.h>
45#include <sys/proc.h>
46#include <sys/sysctl.h>

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

84 * NFS code. (Of couse, the OTW NFS protocol still needs to be munged, but
85 * that is a(whole)nother story.) This is a feature.
86 */
87
88/*
89 * Routines having to do with the management of the vnode table.
90 */
91
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/kernel.h>
43#include <sys/linker.h>
44#include <sys/mount.h>
45#include <sys/proc.h>
46#include <sys/sysctl.h>

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

84 * NFS code. (Of couse, the OTW NFS protocol still needs to be munged, but
85 * that is a(whole)nother story.) This is a feature.
86 */
87
88/*
89 * Routines having to do with the management of the vnode table.
90 */
91
92/*
93 * XXX: hack alert
94 */
95int
96vcall(struct vnode *vp, u_int off, void *ap)
97{
98 struct vop_vector *vop = vp->v_op;
99 vop_bypass_t **bpt;
100 int rc;
101
102 for(;;) {
103 bpt = (void *)((u_char *)vop + off);
104 if (vop != NULL && *bpt == NULL && vop->vop_bypass == NULL) {
105 vop = vop->vop_default;
106 continue;
107 }
108 break;
109 }
110 KASSERT(vop != NULL, ("No VCALL(%p...)", vp));
111 if (*bpt != NULL)
112 rc = (*bpt)(ap);
113 else
114 rc = vop->vop_bypass(ap);
115 return (rc);
116}
117
118struct vfsconf *
119vfs_byname(const char *name)
120{
121 struct vfsconf *vfsp;
122
123 if (!strcmp(name, "ffs"))
124 name = "ufs";
125 TAILQ_FOREACH(vfsp, &vfsconf, vfc_list)

--- 207 unchanged lines hidden ---
92struct vfsconf *
93vfs_byname(const char *name)
94{
95 struct vfsconf *vfsp;
96
97 if (!strcmp(name, "ffs"))
98 name = "ufs";
99 TAILQ_FOREACH(vfsp, &vfsconf, vfc_list)

--- 207 unchanged lines hidden ---