ufs: stop doing refcount_init on made up creds

creds are not using the refcount API for a long time now, but this
previously failed to fail to compile because the type remained int.

Now it broke due to conversion to long.
This commit is contained in:
Mateusz Guzik 2023-03-29 09:16:43 +00:00
parent 57014ab776
commit 7c31de1a3c

View File

@ -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;