Lines Matching refs:ug
443 struct unix_gid *ug = container_of(item, struct unix_gid, h); in unix_gid_put() local
446 put_group_info(ug->gi); in unix_gid_put()
447 kfree(ug); in unix_gid_put()
484 struct unix_gid *ug = container_of(h, struct unix_gid, h); in unix_gid_request() local
486 snprintf(tuid, 20, "%u", ug->uid); in unix_gid_request()
508 struct unix_gid ug, *ugp; in unix_gid_parse() local
517 ug.uid = uid; in unix_gid_parse()
527 ug.gi = groups_alloc(gids); in unix_gid_parse()
528 if (!ug.gi) in unix_gid_parse()
537 GROUP_AT(ug.gi, i) = gid; in unix_gid_parse()
543 ug.h.flags = 0; in unix_gid_parse()
544 ug.h.expiry_time = expiry; in unix_gid_parse()
546 &ug.h, &ugp->h, in unix_gid_parse()
557 if (ug.gi) in unix_gid_parse()
558 put_group_info(ug.gi); in unix_gid_parse()
566 struct unix_gid *ug; in unix_gid_show() local
574 ug = container_of(h, struct unix_gid, h); in unix_gid_show()
577 glen = ug->gi->ngroups; in unix_gid_show()
581 seq_printf(m, "%u %d:", ug->uid, glen); in unix_gid_show()
583 seq_printf(m, " %d", GROUP_AT(ug->gi, i)); in unix_gid_show()
633 struct unix_gid ug; in unix_gid_lookup() local
636 ug.uid = uid; in unix_gid_lookup()
637 ch = sunrpc_cache_lookup(cd, &ug.h, hash_long(uid, GID_HASHBITS)); in unix_gid_lookup()
646 struct unix_gid *ug; in unix_gid_find() local
652 ug = unix_gid_lookup(sn->unix_gid_cache, uid); in unix_gid_find()
653 if (!ug) in unix_gid_find()
655 ret = cache_check(sn->unix_gid_cache, &ug->h, &rqstp->rq_chandle); in unix_gid_find()
662 gi = get_group_info(ug->gi); in unix_gid_find()
663 cache_put(&ug->h, sn->unix_gid_cache); in unix_gid_find()