mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
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 <ryan@iXsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu> Closes #10470
This commit is contained in:
committed by
Brian Behlendorf
parent
1fa5c7af33
commit
65c7cc49bf
@@ -94,7 +94,7 @@ callb_cpr_t callb_cprinfo_safe = {
|
||||
/*
|
||||
* Init all callb tables in the system.
|
||||
*/
|
||||
void
|
||||
static void
|
||||
callb_init(void *dummy __unused)
|
||||
{
|
||||
callb_table.ct_busy = 0; /* mark table open for additions */
|
||||
@@ -102,7 +102,7 @@ callb_init(void *dummy __unused)
|
||||
mutex_init(&callb_table.ct_lock, NULL, MUTEX_DEFAULT, NULL);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
callb_fini(void *dummy __unused)
|
||||
{
|
||||
callb_t *cp;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1250,7 +1250,7 @@ out:
|
||||
return (error);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
zfs_unregister_callbacks(zfsvfs_t *zfsvfs)
|
||||
{
|
||||
objset_t *os = zfsvfs->z_os;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user