]> granicus.if.org Git - zfs/commitdiff
Remove get/put_task_struct as they are not available for SLES11
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 28 Jul 2009 22:04:21 +0000 (15:04 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 28 Jul 2009 22:04:21 +0000 (15:04 -0700)
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.

module/spl/spl-cred.c

index c5994aa2056fdfc327a8306a12b4d8f885f5a655..826a228dd36069e4689d319d1c763b97db80a8ca 100644 (file)
@@ -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