Use AllocLargeSpace for osi_file's on Linux because it sometimes
exceeds SMALLOCSIZ.
crhold(&afs_osi_cred); /* don't let it evaporate, since it is static */
afs_osicred_initialized = 1;
}
- afile = (struct osi_file *)osi_AllocSmallSpace(sizeof(struct osi_file));
+ afile = (struct osi_file *)osi_AllocLargeSpace(sizeof(struct osi_file));
AFS_GUNLOCK();
if (!afile) {
osi_Panic("osi_UFSOpen: Failed to allocate %d bytes for osi_file.\n",
}
}
- osi_FreeSmallSpace(afile);
+ osi_FreeLargeSpace(afile);
return 0;
}