git: d35991d32774 - main - nullfs: ansify fs/nullfs/null_subr.c

From: Mateusz Guzik <mjg_at_FreeBSD.org>
Date: Thu, 27 Jan 2022 00:12:30 UTC
The branch main has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=d35991d3277410fcb2610a40af72a9d0f28f4192

commit d35991d3277410fcb2610a40af72a9d0f28f4192
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-09-18 10:25:40 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2022-01-27 00:01:45 +0000

    nullfs: ansify fs/nullfs/null_subr.c
---
 sys/fs/nullfs/null_subr.c | 27 +++++++--------------------
 1 file changed, 7 insertions(+), 20 deletions(-)

diff --git a/sys/fs/nullfs/null_subr.c b/sys/fs/nullfs/null_subr.c
index 5f8cbfd4ce31..982c7d798bb2 100644
--- a/sys/fs/nullfs/null_subr.c
+++ b/sys/fs/nullfs/null_subr.c
@@ -71,8 +71,7 @@ static struct vnode * null_hashins(struct mount *, struct null_node *);
  * Initialise cache headers
  */
 int
-nullfs_init(vfsp)
-	struct vfsconf *vfsp;
+nullfs_init(struct vfsconf *vfsp)
 {
 
 	null_node_hashtbl = hashinit(desiredvnodes, M_NULLFSHASH,
@@ -82,8 +81,7 @@ nullfs_init(vfsp)
 }
 
 int
-nullfs_uninit(vfsp)
-	struct vfsconf *vfsp;
+nullfs_uninit(struct vfsconf *vfsp)
 {
 
 	rw_destroy(&null_hash_lock);
@@ -96,9 +94,7 @@ nullfs_uninit(vfsp)
  * Lower vnode should be locked on entry and will be left locked on exit.
  */
 struct vnode *
-null_hashget(mp, lowervp)
-	struct mount *mp;
-	struct vnode *lowervp;
+null_hashget(struct mount *mp, struct vnode *lowervp)
 {
 	struct null_node_hashhead *hd;
 	struct null_node *a;
@@ -139,9 +135,7 @@ null_hashget(mp, lowervp)
  * node found.
  */
 static struct vnode *
-null_hashins(mp, xp)
-	struct mount *mp;
-	struct null_node *xp;
+null_hashins(struct mount *mp, struct null_node *xp)
 {
 	struct null_node_hashhead *hd;
 	struct null_node *oxp;
@@ -191,10 +185,7 @@ null_destroy_proto(struct vnode *vp, void *xp)
  * the caller's "spare" reference to created nullfs vnode.
  */
 int
-null_nodeget(mp, lowervp, vpp)
-	struct mount *mp;
-	struct vnode *lowervp;
-	struct vnode **vpp;
+null_nodeget(struct mount *mp, struct vnode *lowervp, struct vnode **vpp)
 {
 	struct null_node *xp;
 	struct vnode *vp;
@@ -291,8 +282,7 @@ null_nodeget(mp, lowervp, vpp)
  * Remove node from hash.
  */
 void
-null_hashrem(xp)
-	struct null_node *xp;
+null_hashrem(struct null_node *xp)
 {
 
 	rw_wlock(&null_hash_lock);
@@ -303,10 +293,7 @@ null_hashrem(xp)
 #ifdef DIAGNOSTIC
 
 struct vnode *
-null_checkvp(vp, fil, lno)
-	struct vnode *vp;
-	char *fil;
-	int lno;
+null_checkvp(struct vnode *vp, char *fil, int lno)
 {
 	struct null_node *a = VTONULL(vp);