aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2023-02-07 23:22:27 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2023-02-07 23:22:27 +0000
commit24641b8b3964e9015d3f8579b2359104bb0e5eea (patch)
treea4dd94d8e7d15abd05688cb618d9d6d0629c8810
parented40bc50dff06219baa251f1d238249624cb74ec (diff)
downloadsrc-24641b8b3964e9015d3f8579b2359104bb0e5eea.tar.gz
src-24641b8b3964e9015d3f8579b2359104bb0e5eea.zip
nullfs: ansify
Reported by: clang 15 Sponsored by: Rubicon Communications, LLC ("Netgate")
-rw-r--r--sys/fs/nullfs/null_vfsops.c46
1 files changed, 10 insertions, 36 deletions
diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c
index 7f78d23ba016..89500e4025a3 100644
--- a/sys/fs/nullfs/null_vfsops.c
+++ b/sys/fs/nullfs/null_vfsops.c
@@ -241,9 +241,7 @@ nullfs_mount(struct mount *mp)
* Free reference to null layer
*/
static int
-nullfs_unmount(mp, mntflags)
- struct mount *mp;
- int mntflags;
+nullfs_unmount(struct mount *mp, int mntflags)
{
struct null_mount *mntdata;
int error, flags;
@@ -291,10 +289,7 @@ nullfs_unmount(mp, mntflags)
}
static int
-nullfs_root(mp, flags, vpp)
- struct mount *mp;
- int flags;
- struct vnode **vpp;
+nullfs_root(struct mount *mp, int flags, struct vnode **vpp)
{
struct vnode *vp;
struct null_mount *mntdata;
@@ -315,12 +310,7 @@ nullfs_root(mp, flags, vpp)
}
static int
-nullfs_quotactl(mp, cmd, uid, arg, mp_busy)
- struct mount *mp;
- int cmd;
- uid_t uid;
- void *arg;
- bool *mp_busy;
+nullfs_quotactl(struct mount *mp, int cmd, uid_t uid, void *arg, bool *mp_busy)
{
struct mount *lowermp;
struct null_mount *mntdata;
@@ -351,9 +341,7 @@ nullfs_quotactl(mp, cmd, uid, arg, mp_busy)
}
static int
-nullfs_statfs(mp, sbp)
- struct mount *mp;
- struct statfs *sbp;
+nullfs_statfs(struct mount *mp, struct statfs *sbp)
{
int error;
struct statfs *mstat;
@@ -388,9 +376,7 @@ nullfs_statfs(mp, sbp)
}
static int
-nullfs_sync(mp, waitfor)
- struct mount *mp;
- int waitfor;
+nullfs_sync(struct mount *mp, int waitfor)
{
/*
* XXX - Assumes no data cached at null layer.
@@ -399,11 +385,7 @@ nullfs_sync(mp, waitfor)
}
static int
-nullfs_vget(mp, ino, flags, vpp)
- struct mount *mp;
- ino_t ino;
- int flags;
- struct vnode **vpp;
+nullfs_vget(struct mount *mp, ino_t ino, int flags, struct vnode **vpp)
{
int error;
@@ -417,11 +399,7 @@ nullfs_vget(mp, ino, flags, vpp)
}
static int
-nullfs_fhtovp(mp, fidp, flags, vpp)
- struct mount *mp;
- struct fid *fidp;
- int flags;
- struct vnode **vpp;
+nullfs_fhtovp(struct mount *mp, struct fid *fidp, int flags, struct vnode **vpp)
{
int error;
@@ -432,13 +410,9 @@ nullfs_fhtovp(mp, fidp, flags, vpp)
return (null_nodeget(mp, *vpp, vpp));
}
-static int
-nullfs_extattrctl(mp, cmd, filename_vp, namespace, attrname)
- struct mount *mp;
- int cmd;
- struct vnode *filename_vp;
- int namespace;
- const char *attrname;
+static int
+nullfs_extattrctl(struct mount *mp, int cmd, struct vnode *filename_vp,
+ int namespace, const char *attrname)
{
return (VFS_EXTATTRCTL(MOUNTTONULLMOUNT(mp)->nullm_vfs, cmd,