nullfs: ansify
Reported by: clang 15 Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
ed40bc50df
commit
24641b8b39
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user