Style: Remove the commented out vop_foo_args replicas.

This commit is contained in:
Poul-Henning Kamp 2005-01-24 11:49:41 +00:00
parent f579625397
commit a515233f47

@ -192,21 +192,6 @@ static int null_bug_bypass = 0; /* for debugging: enables bypass printf'ing */
SYSCTL_INT(_debug, OID_AUTO, nullfs_bug_bypass, CTLFLAG_RW, SYSCTL_INT(_debug, OID_AUTO, nullfs_bug_bypass, CTLFLAG_RW,
&null_bug_bypass, 0, ""); &null_bug_bypass, 0, "");
static vop_access_t null_access;
static vop_createvobject_t null_createvobject;
static vop_destroyvobject_t null_destroyvobject;
static vop_getattr_t null_getattr;
static vop_getvobject_t null_getvobject;
static vop_inactive_t null_inactive;
static vop_islocked_t null_islocked;
static vop_lock_t null_lock;
static vop_lookup_t null_lookup;
static vop_print_t null_print;
static vop_reclaim_t null_reclaim;
static vop_rename_t null_rename;
static vop_setattr_t null_setattr;
static vop_unlock_t null_unlock;
/* /*
* This is the 10-Apr-92 bypass routine. * This is the 10-Apr-92 bypass routine.
* This version has been optimized for speed, throwing away some * This version has been optimized for speed, throwing away some
@ -232,11 +217,7 @@ static vop_unlock_t null_unlock;
* problems on rmdir'ing mount points and renaming?) * problems on rmdir'ing mount points and renaming?)
*/ */
int int
null_bypass(ap) null_bypass(struct vop_generic_args *ap)
struct vop_generic_args /* {
struct vnodeop_desc *a_desc;
<other random data follows, presumably>
} */ *ap;
{ {
register struct vnode **this_vp_p; register struct vnode **this_vp_p;
int error; int error;
@ -354,12 +335,7 @@ null_bypass(ap)
* if this layer is mounted read-only. * if this layer is mounted read-only.
*/ */
static int static int
null_lookup(ap) null_lookup(struct vop_lookup_args *ap)
struct vop_lookup_args /* {
struct vnode * a_dvp;
struct vnode ** a_vpp;
struct componentname * a_cnp;
} */ *ap;
{ {
struct componentname *cnp = ap->a_cnp; struct componentname *cnp = ap->a_cnp;
struct vnode *dvp = ap->a_dvp; struct vnode *dvp = ap->a_dvp;
@ -410,14 +386,7 @@ null_lookup(ap)
* Setattr call. Disallow write attempts if the layer is mounted read-only. * Setattr call. Disallow write attempts if the layer is mounted read-only.
*/ */
static int static int
null_setattr(ap) null_setattr(struct vop_setattr_args *ap)
struct vop_setattr_args /* {
struct vnodeop_desc *a_desc;
struct vnode *a_vp;
struct vattr *a_vap;
struct ucred *a_cred;
struct thread *a_td;
} */ *ap;
{ {
struct vnode *vp = ap->a_vp; struct vnode *vp = ap->a_vp;
struct vattr *vap = ap->a_vap; struct vattr *vap = ap->a_vap;
@ -457,13 +426,7 @@ null_setattr(ap)
* We handle getattr only to change the fsid. * We handle getattr only to change the fsid.
*/ */
static int static int
null_getattr(ap) null_getattr(struct vop_getattr_args *ap)
struct vop_getattr_args /* {
struct vnode *a_vp;
struct vattr *a_vap;
struct ucred *a_cred;
struct thread *a_td;
} */ *ap;
{ {
int error; int error;
@ -478,13 +441,7 @@ null_getattr(ap)
* Handle to disallow write access if mounted read-only. * Handle to disallow write access if mounted read-only.
*/ */
static int static int
null_access(ap) null_access(struct vop_access_args *ap)
struct vop_access_args /* {
struct vnode *a_vp;
int a_mode;
struct ucred *a_cred;
struct thread *a_td;
} */ *ap;
{ {
struct vnode *vp = ap->a_vp; struct vnode *vp = ap->a_vp;
mode_t mode = ap->a_mode; mode_t mode = ap->a_mode;
@ -515,15 +472,7 @@ null_access(ap)
* possibly we should. * possibly we should.
*/ */
static int static int
null_rename(ap) null_rename(struct vop_rename_args *ap)
struct vop_rename_args /* {
struct vnode *a_fdvp;
struct vnode *a_fvp;
struct componentname *a_fcnp;
struct vnode *a_tdvp;
struct vnode *a_tvp;
struct componentname *a_tcnp;
} */ *ap;
{ {
struct vnode *tdvp = ap->a_tdvp; struct vnode *tdvp = ap->a_tdvp;
struct vnode *fvp = ap->a_fvp; struct vnode *fvp = ap->a_fvp;
@ -553,12 +502,7 @@ null_rename(ap)
* vnodes below us on the stack. * vnodes below us on the stack.
*/ */
static int static int
null_lock(ap) null_lock(struct vop_lock_args *ap)
struct vop_lock_args /* {
struct vnode *a_vp;
int a_flags;
struct thread *a_td;
} */ *ap;
{ {
struct vnode *vp = ap->a_vp; struct vnode *vp = ap->a_vp;
int flags = ap->a_flags; int flags = ap->a_flags;
@ -683,12 +627,7 @@ null_lock(ap)
* vnodes below us on the stack. * vnodes below us on the stack.
*/ */
static int static int
null_unlock(ap) null_unlock(struct vop_unlock_args *ap)
struct vop_unlock_args /* {
struct vnode *a_vp;
int a_flags;
struct thread *a_td;
} */ *ap;
{ {
struct vnode *vp = ap->a_vp; struct vnode *vp = ap->a_vp;
int flags = ap->a_flags; int flags = ap->a_flags;
@ -717,11 +656,7 @@ null_unlock(ap)
} }
static int static int
null_islocked(ap) null_islocked(struct vop_islocked_args *ap)
struct vop_islocked_args /* {
struct vnode *a_vp;
struct thread *a_td;
} */ *ap;
{ {
struct vnode *vp = ap->a_vp; struct vnode *vp = ap->a_vp;
struct thread *td = ap->a_td; struct thread *td = ap->a_td;
@ -742,11 +677,7 @@ null_islocked(ap)
* for null_inactive to unlock vnode. Thus we will do all those in VOP_RECLAIM. * for null_inactive to unlock vnode. Thus we will do all those in VOP_RECLAIM.
*/ */
static int static int
null_inactive(ap) null_inactive(struct vop_inactive_args *ap)
struct vop_inactive_args /* {
struct vnode *a_vp;
struct thread *a_td;
} */ *ap;
{ {
struct vnode *vp = ap->a_vp; struct vnode *vp = ap->a_vp;
struct thread *td = ap->a_td; struct thread *td = ap->a_td;
@ -766,11 +697,7 @@ null_inactive(ap)
* Now, the VXLOCK is in force and we're free to destroy the null vnode. * Now, the VXLOCK is in force and we're free to destroy the null vnode.
*/ */
static int static int
null_reclaim(ap) null_reclaim(struct vop_reclaim_args *ap)
struct vop_reclaim_args /* {
struct vnode *a_vp;
struct thread *a_td;
} */ *ap;
{ {
struct vnode *vp = ap->a_vp; struct vnode *vp = ap->a_vp;
struct null_node *xp = VTONULL(vp); struct null_node *xp = VTONULL(vp);
@ -791,10 +718,7 @@ null_reclaim(ap)
} }
static int static int
null_print(ap) null_print(struct vop_print_args *ap)
struct vop_print_args /* {
struct vnode *a_vp;
} */ *ap;
{ {
register struct vnode *vp = ap->a_vp; register struct vnode *vp = ap->a_vp;
printf("\tvp=%p, lowervp=%p\n", vp, NULLVPTOLOWERVP(vp)); printf("\tvp=%p, lowervp=%p\n", vp, NULLVPTOLOWERVP(vp));
@ -805,12 +729,7 @@ null_print(ap)
* Let an underlying filesystem do the work * Let an underlying filesystem do the work
*/ */
static int static int
null_createvobject(ap) null_createvobject(struct vop_createvobject_args *ap)
struct vop_createvobject_args /* {
struct vnode *vp;
struct ucred *cred;
struct thread *td;
} */ *ap;
{ {
struct vnode *vp = ap->a_vp; struct vnode *vp = ap->a_vp;
struct vnode *lowervp = VTONULL(vp) ? NULLVPTOLOWERVP(vp) : NULL; struct vnode *lowervp = VTONULL(vp) ? NULLVPTOLOWERVP(vp) : NULL;
@ -829,10 +748,7 @@ null_createvobject(ap)
* We have nothing to destroy and this operation shouldn't be bypassed. * We have nothing to destroy and this operation shouldn't be bypassed.
*/ */
static int static int
null_destroyvobject(ap) null_destroyvobject(struct vop_destroyvobject_args *ap)
struct vop_destroyvobject_args /* {
struct vnode *vp;
} */ *ap;
{ {
struct vnode *vp = ap->a_vp; struct vnode *vp = ap->a_vp;
@ -841,11 +757,7 @@ null_destroyvobject(ap)
} }
static int static int
null_getvobject(ap) null_getvobject(struct vop_getvobject_args *ap)
struct vop_getvobject_args /* {
struct vnode *vp;
struct vm_object **objpp;
} */ *ap;
{ {
struct vnode *lvp = NULLVPTOLOWERVP(ap->a_vp); struct vnode *lvp = NULLVPTOLOWERVP(ap->a_vp);