From: Brian Behlendorf Date: Tue, 28 Jul 2009 22:04:21 +0000 (-0700) Subject: Remove get/put_task_struct as they are not available for SLES11 X-Git-Tag: zfs-0.8.0-rc1~152^2~671 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b09f739398a644384bfbab87792e4681707aef1;p=zfs 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. --- diff --git a/module/spl/spl-cred.c b/module/spl/spl-cred.c index c5994aa20..826a228dd 100644 --- a/module/spl/spl-cred.c +++ b/module/spl/spl-cred.c @@ -179,18 +179,10 @@ groupmember(gid_t gid, const cred_t *cr) */ /* Hold a reference on the credential and group info */ -void -crhold(cred_t *cr) -{ - get_task_struct(cr); -} +void crhold(cred_t *cr) { } /* Free a reference on the credential and group info */ -void -crfree(cred_t *cr) -{ - put_task_struct(cr); -} +void crfree(cred_t *cr) { } /* Return the effective user id */ uid_t