mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 03:19:35 +03:00
Remove get/put_task_struct as they are not available for SLES11
This interface is going away, and it's not as if most callers actually use crhold/crfree when working with credentials. So it'll be okay they we're not taking a reference on the task structure the odds of it going away while working with a credential and pretty small.
This commit is contained in:
parent
ec7d53e99a
commit
6b09f73939
@ -179,18 +179,10 @@ groupmember(gid_t gid, const cred_t *cr)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* Hold a reference on the credential and group info */
|
/* Hold a reference on the credential and group info */
|
||||||
void
|
void crhold(cred_t *cr) { }
|
||||||
crhold(cred_t *cr)
|
|
||||||
{
|
|
||||||
get_task_struct(cr);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Free a reference on the credential and group info */
|
/* Free a reference on the credential and group info */
|
||||||
void
|
void crfree(cred_t *cr) { }
|
||||||
crfree(cred_t *cr)
|
|
||||||
{
|
|
||||||
put_task_struct(cr);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Return the effective user id */
|
/* Return the effective user id */
|
||||||
uid_t
|
uid_t
|
||||||
|
Loading…
Reference in New Issue
Block a user