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:
parent
57014ab776
commit
7c31de1a3c
@ -2073,7 +2073,7 @@ ufs_mkdir(
|
|||||||
* XXX This seems to never be accessed out of
|
* XXX This seems to never be accessed out of
|
||||||
* our context so a stack variable is ok.
|
* 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_uid = ip->i_uid;
|
||||||
ucred.cr_ngroups = 1;
|
ucred.cr_ngroups = 1;
|
||||||
ucred.cr_groups = &ucred_group;
|
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
|
* XXX This seems to never be accessed out of our
|
||||||
* context so a stack variable is ok.
|
* 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_uid = ip->i_uid;
|
||||||
ucred.cr_ngroups = 1;
|
ucred.cr_ngroups = 1;
|
||||||
ucred.cr_groups = &ucred_group;
|
ucred.cr_groups = &ucred_group;
|
||||||
|
Loading…
Reference in New Issue
Block a user