From: Derrick Brashear Date: Fri, 30 Nov 2007 19:13:38 +0000 (+0000) Subject: aix-pin-small-allocs-20071130 X-Git-Tag: BP-openafs-windows-kdfs-ifs~318 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=f9fddc03ec2f36528953f5264263458bf730506e;p=packages%2Fo%2Fopenafs.git aix-pin-small-allocs-20071130 LICENSE IPL10 we assume the small alloc pool is pinned. maybe we should pin it. --- diff --git a/src/afs/afs_osi_alloc.c b/src/afs/afs_osi_alloc.c index 9df230a80..158bc32c7 100644 --- a/src/afs/afs_osi_alloc.c +++ b/src/afs/afs_osi_alloc.c @@ -207,7 +207,11 @@ osi_AllocSmallSpace(size_t size) if (!freeSmallList) { afs_stats_cmperf.SmallBlocksAlloced++; afs_stats_cmperf.SmallBlocksActive++; - return afs_osi_Alloc(AFS_SMALLOCSIZ); + tp = afs_osi_Alloc(AFS_SMALLOCSIZ); +#ifdef KERNEL_HAVE_PIN + pin((char *)tp, AFS_SMALLOCSIZ); +#endif + return (char *)tp; } afs_stats_cmperf.SmallBlocksActive++; MObtainWriteLock(&osi_fsplock, 327);