From 952d757b41a2f1c24c217f287b83732a753e439b Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Fri, 30 Nov 2007 19:17:01 +0000 Subject: [PATCH] DEVEL15-aix-pin-small-allocs-20071130 LICENSE IPL10 we assume the small alloc pool is pinned. maybe we should pin it. (cherry picked from commit f9fddc03ec2f36528953f5264263458bf730506e) --- src/afs/afs_osi_alloc.c | 6 +++++- src/vol/partition.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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); diff --git a/src/vol/partition.c b/src/vol/partition.c index 1e665fc53..8963854f9 100644 --- a/src/vol/partition.c +++ b/src/vol/partition.c @@ -456,7 +456,7 @@ VAttachPartitions(void) /* but allow zfs too if we're in the NAMEI environment */ if ( #ifdef AFS_NAMEI_ENV - ((!(strcmp(mnt.mnt_fstype, "ufs") && + (((strcmp(mnt.mnt_fstype, "ufs") && strcmp(mnt.mnt_fstype, "zfs")))) #else (strcmp(mnt.mnt_fstype, "ufs") != 0) -- 2.39.5