static void free_entry(struct upcall_cache_entry *entry)
{
if (entry->ue_group_info)
- groups_free(entry->ue_group_info);
+ put_group_info(entry->ue_group_info);
list_del(&entry->ue_hash);
CDEBUG(D_OTHER, "destroy cache entry %p for key "LPU64"\n",
entry, entry->ue_key);
entry->ue_primary = primary;
for (i = 0; i < ginfo->nblocks; i++) {
- int cp_count = min(NGROUPS_PER_BLOCK, (int)ngroups);
+ int cp_count = min_t(int, NGROUPS_PER_BLOCK, ngroups);
int off = i * NGROUPS_PER_BLOCK;
for (j = 0; j < cp_count; j++)