git: 24641b8b3964 - main - nullfs: ansify
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 07 Feb 2023 23:22:43 UTC
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=24641b8b3964e9015d3f8579b2359104bb0e5eea commit 24641b8b3964e9015d3f8579b2359104bb0e5eea Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2023-02-07 23:22:27 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2023-02-07 23:22:27 +0000 nullfs: ansify Reported by: clang 15 Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/fs/nullfs/null_vfsops.c | 46 ++++++++++----------------------------------- 1 file 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,