File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -186,20 +186,6 @@ static inline const struct cred *revert_creds(const struct cred *revert_cred)
186
186
return override_cred ;
187
187
}
188
188
189
- /**
190
- * get_new_cred_many - Get references on a new set of credentials
191
- * @cred: The new credentials to reference
192
- * @nr: Number of references to acquire
193
- *
194
- * Get references on the specified set of new credentials. The caller must
195
- * release all acquired references.
196
- */
197
- static inline struct cred * get_new_cred_many (struct cred * cred , int nr )
198
- {
199
- atomic_long_add (nr , & cred -> usage );
200
- return cred ;
201
- }
202
-
203
189
/**
204
190
* get_cred_many - Get references on a set of credentials
205
191
* @cred: The credentials to reference
@@ -220,7 +206,8 @@ static inline const struct cred *get_cred_many(const struct cred *cred, int nr)
220
206
if (!cred )
221
207
return cred ;
222
208
nonconst_cred -> non_rcu = 0 ;
223
- return get_new_cred_many (nonconst_cred , nr );
209
+ atomic_long_add (nr , & nonconst_cred -> usage );
210
+ return cred ;
224
211
}
225
212
226
213
/*
You can’t perform that action at this time.
0 commit comments