diff options
author | Arvind Sankar <[email protected]> | 2020-06-15 14:30:37 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2020-06-18 12:20:38 -0700 |
commit | 65c7cc49bfcf49d38fc84552a17d7e8a3268e58e (patch) | |
tree | 4740b896f8b5fc114ae9a96c6581776799ffeb3a /module/os/freebsd/zfs | |
parent | 1fa5c7af3314b4c556bd86e3a49e3497a5ed72ed (diff) |
Mark functions as static
Mark functions used only in the same translation unit as static. This
only includes functions that do not have a prototype in a header file
either.
Reviewed-by: Ryan Moeller <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Arvind Sankar <[email protected]>
Closes #10470
Diffstat (limited to 'module/os/freebsd/zfs')
-rw-r--r-- | module/os/freebsd/zfs/zfs_acl.c | 2 | ||||
-rw-r--r-- | module/os/freebsd/zfs/zfs_ctldir.c | 8 | ||||
-rw-r--r-- | module/os/freebsd/zfs/zfs_vfsops.c | 2 | ||||
-rw-r--r-- | module/os/freebsd/zfs/zfs_vnops.c | 16 | ||||
-rw-r--r-- | module/os/freebsd/zfs/zfs_znode.c | 2 |
5 files changed, 15 insertions, 15 deletions
diff --git a/module/os/freebsd/zfs/zfs_acl.c b/module/os/freebsd/zfs/zfs_acl.c index c11e16437..07fa42fc8 100644 --- a/module/os/freebsd/zfs/zfs_acl.c +++ b/module/os/freebsd/zfs/zfs_acl.c @@ -648,7 +648,7 @@ zfs_ace_walk(void *datap, uint64_t cookie, int aclcnt, * While processing the ACL each ACE will be validated for correctness. * ACE FUIDs will be created later. */ -int +static int zfs_copy_ace_2_fuid(zfsvfs_t *zfsvfs, vtype_t obj_type, zfs_acl_t *aclp, void *datap, zfs_ace_t *z_acl, uint64_t aclcnt, size_t *size, zfs_fuid_info_t **fuidp, cred_t *cr) diff --git a/module/os/freebsd/zfs/zfs_ctldir.c b/module/os/freebsd/zfs/zfs_ctldir.c index fb0ffc082..2738f5399 100644 --- a/module/os/freebsd/zfs/zfs_ctldir.c +++ b/module/os/freebsd/zfs/zfs_ctldir.c @@ -602,7 +602,7 @@ zfsctl_root_getattr(struct vop_getattr_args *ap) * When we lookup "." we still can be asked to lock it * differently, can't we? */ -int +static int zfsctl_relock_dot(vnode_t *dvp, int ltype) { vref(dvp); @@ -624,7 +624,7 @@ zfsctl_relock_dot(vnode_t *dvp, int ltype) /* * Special case the handling of "..". */ -int +static int zfsctl_root_lookup(struct vop_lookup_args *ap) { struct componentname *cnp = ap->a_cnp; @@ -766,7 +766,7 @@ zfsctl_common_pathconf(struct vop_pathconf_args *ap) /* * Returns a trivial ACL */ -int +static int zfsctl_common_getacl(struct vop_getacl_args *ap) { int i; @@ -894,7 +894,7 @@ zfsctl_snapshot_vnode_setup(vnode_t *vp, void *arg) * - the snapshot vnode is not covered, because the snapshot has been unmounted * The last two states are transient and should be relatively short-lived. */ -int +static int zfsctl_snapdir_lookup(struct vop_lookup_args *ap) { vnode_t *dvp = ap->a_dvp; diff --git a/module/os/freebsd/zfs/zfs_vfsops.c b/module/os/freebsd/zfs/zfs_vfsops.c index 8a7626c86..5bd6bdfae 100644 --- a/module/os/freebsd/zfs/zfs_vfsops.c +++ b/module/os/freebsd/zfs/zfs_vfsops.c @@ -1250,7 +1250,7 @@ out: return (error); } -void +static void zfs_unregister_callbacks(zfsvfs_t *zfsvfs) { objset_t *os = zfsvfs->z_os; diff --git a/module/os/freebsd/zfs/zfs_vnops.c b/module/os/freebsd/zfs/zfs_vnops.c index ca23026be..cf684222b 100644 --- a/module/os/freebsd/zfs/zfs_vnops.c +++ b/module/os/freebsd/zfs/zfs_vnops.c @@ -1251,7 +1251,7 @@ zfs_write_simple(znode_t *zp, const void *data, size_t len, return (error); } -void +static void zfs_get_done(zgd_t *zgd, int error) { znode_t *zp = zgd->zgd_private; @@ -2052,7 +2052,7 @@ out: } -int +static int zfs_lookup_internal(znode_t *dzp, char *name, vnode_t **vpp, struct componentname *cnp, int nameiop) { @@ -4605,7 +4605,7 @@ zfs_space(znode_t *zp, int cmd, flock64_t *bfp, int flag, } /*ARGSUSED*/ -void +static void zfs_inactive(vnode_t *vp, cred_t *cr, caller_context_t *ct) { znode_t *zp = VTOZ(vp); @@ -5043,7 +5043,7 @@ struct vop_putpages_args { }; #endif -int +static int zfs_freebsd_putpages(struct vop_putpages_args *ap) { @@ -5994,7 +5994,7 @@ struct vop_deleteextattr { /* * Vnode operation to remove a named attribute. */ -int +static int zfs_deleteextattr(struct vop_deleteextattr_args *ap) { zfsvfs_t *zfsvfs = VTOZ(ap->a_vp)->z_zfsvfs; @@ -6271,7 +6271,7 @@ struct vop_getacl_args { }; #endif -int +static int zfs_freebsd_getacl(struct vop_getacl_args *ap) { int error; @@ -6302,7 +6302,7 @@ struct vop_setacl_args { }; #endif -int +static int zfs_freebsd_setacl(struct vop_setacl_args *ap) { int error; @@ -6355,7 +6355,7 @@ struct vop_aclcheck_args { }; #endif -int +static int zfs_freebsd_aclcheck(struct vop_aclcheck_args *ap) { diff --git a/module/os/freebsd/zfs/zfs_znode.c b/module/os/freebsd/zfs/zfs_znode.c index e2f941415..8a2e55c67 100644 --- a/module/os/freebsd/zfs/zfs_znode.c +++ b/module/os/freebsd/zfs/zfs_znode.c @@ -1731,7 +1731,7 @@ zfs_grab_sa_handle(objset_t *osp, uint64_t obj, sa_handle_t **hdlp, return (0); } -void +static void zfs_release_sa_handle(sa_handle_t *hdl, dmu_buf_t *db, void *tag) { sa_handle_destroy(hdl); |