cred: fix struct credbatch to use long for refcount

This structure collects count from multiple cred structures.  Of course it
can't use a smaller type.

PR:			283747
Reviewed by:		olce, mjg, markj
Differential Revision:	https://reviews.freebsd.org/D49562
Fixes:			37337709d3

(cherry picked from commit cd46e98013)
This commit is contained in:
Gleb Smirnoff 2025-03-29 15:09:15 -07:00
parent 1463d5ff13
commit fca3395674
2 changed files with 3 additions and 3 deletions

View file

@ -2365,7 +2365,7 @@ crunuse(struct thread *td)
}
static void
crunusebatch(struct ucred *cr, int users, int ref)
crunusebatch(struct ucred *cr, u_int users, long ref)
{
KASSERT(users > 0, ("%s: passed users %d not > 0 ; cred %p",

View file

@ -195,8 +195,8 @@ struct proc;
struct credbatch {
struct ucred *cred;
int users;
int ref;
u_int users;
long ref;
};
static inline void