diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c index a027a22cc9ca..c13aec4e2175 100644 --- a/sys/ufs/ufs/ufs_vnops.c +++ b/sys/ufs/ufs/ufs_vnops.c @@ -2073,7 +2073,7 @@ ufs_mkdir( * XXX This seems to never be accessed out of * our context so a stack variable is ok. */ - refcount_init(&ucred.cr_ref, 1); + ucred.cr_ref = 1; ucred.cr_uid = ip->i_uid; ucred.cr_ngroups = 1; ucred.cr_groups = &ucred_group; @@ -2825,7 +2825,7 @@ ufs_makeinode(int mode, struct vnode *dvp, struct vnode **vpp, * XXX This seems to never be accessed out of our * context so a stack variable is ok. */ - refcount_init(&ucred.cr_ref, 1); + ucred.cr_ref = 1; ucred.cr_uid = ip->i_uid; ucred.cr_ngroups = 1; ucred.cr_groups = &ucred_group;