summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_subr.c
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2003-03-03 19:15:40 +0000
committernjl <njl@FreeBSD.org>2003-03-03 19:15:40 +0000
commit5a225ad93319945ddf1088461e0b574dd6daf1f5 (patch)
tree7305b3cb7830a69706d4f895936e5aaecc614cbe /sys/kern/vfs_subr.c
parent7e3263308badc4fb7923e001ca3b61ca0cfaa7c0 (diff)
downloadFreeBSD-src-5a225ad93319945ddf1088461e0b574dd6daf1f5.zip
FreeBSD-src-5a225ad93319945ddf1088461e0b574dd6daf1f5.tar.gz
Finish cleanup of vprint() which was begun with changing v_tag to a string.
Remove extraneous uses of vop_null, instead defering to the default op. Rename vnode type "vfs" to the more descriptive "syncer". Fix formatting for various filesystems that use vop_print.
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r--sys/kern/vfs_subr.c28
1 files changed, 3 insertions, 25 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 127787f..7e21555 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -2864,10 +2864,8 @@ vprint(label, vp)
printf(" flags (%s),", &buf[1]);
lockmgr_printinfo(vp->v_vnlock);
printf("\n");
- if (vp->v_data != NULL) {
- printf("\t");
+ if (vp->v_data != NULL)
VOP_PRINT(vp);
- }
}
#ifdef DDB
@@ -2892,7 +2890,7 @@ DB_SHOW_COMMAND(lockedvnods, lockedvnodes)
mtx_lock(&mntvnode_mtx);
TAILQ_FOREACH(vp, &mp->mnt_nvnodelist, v_nmntvnodes) {
if (VOP_ISLOCKED(vp, NULL))
- vprint((char *)0, vp);
+ vprint(NULL, vp);
}
mtx_unlock(&mntvnode_mtx);
mtx_lock(&mountlist_mtx);
@@ -3392,7 +3390,6 @@ vn_pollgone(vp)
static int sync_fsync(struct vop_fsync_args *);
static int sync_inactive(struct vop_inactive_args *);
static int sync_reclaim(struct vop_reclaim_args *);
-static int sync_print(struct vop_print_args *);
static vop_t **sync_vnodeop_p;
static struct vnodeopv_entry_desc sync_vnodeop_entries[] = {
@@ -3403,7 +3400,6 @@ static struct vnodeopv_entry_desc sync_vnodeop_entries[] = {
{ &vop_reclaim_desc, (vop_t *) sync_reclaim }, /* reclaim */
{ &vop_lock_desc, (vop_t *) vop_stdlock }, /* lock */
{ &vop_unlock_desc, (vop_t *) vop_stdunlock }, /* unlock */
- { &vop_print_desc, (vop_t *) sync_print }, /* print */
{ &vop_islocked_desc, (vop_t *) vop_stdislocked }, /* islocked */
{ NULL, NULL }
};
@@ -3424,7 +3420,7 @@ vfs_allocate_syncvnode(mp)
int error;
/* Allocate a new vnode */
- if ((error = getnewvnode("vfs", mp, sync_vnodeop_p, &vp)) != 0) {
+ if ((error = getnewvnode("syncer", mp, sync_vnodeop_p, &vp)) != 0) {
mp->mnt_syncer = NULL;
return (error);
}
@@ -3552,24 +3548,6 @@ sync_reclaim(ap)
}
/*
- * Print out a syncer vnode.
- */
-static int
-sync_print(ap)
- struct vop_print_args /* {
- struct vnode *a_vp;
- } */ *ap;
-{
- struct vnode *vp = ap->a_vp;
-
- printf("syncer vnode");
- if (vp->v_vnlock != NULL)
- lockmgr_printinfo(vp->v_vnlock);
- printf("\n");
- return (0);
-}
-
-/*
* extract the dev_t from a VCHR
*/
dev_t
OpenPOWER on IntegriCloud