use-largespace-for-osifile-20030815
authorNickolai Zeldovich <kolya@mit.edu>
Sat, 16 Aug 2003 00:50:27 +0000 (00:50 +0000)
committerNickolai Zeldovich <kolya@mit.edu>
Sat, 16 Aug 2003 00:50:27 +0000 (00:50 +0000)
Use AllocLargeSpace for osi_file's on Linux because it sometimes
exceeds SMALLOCSIZ.

src/afs/LINUX/osi_file.c

index d7e5f62..7b7af1d 100644 (file)
@@ -45,7 +45,7 @@ osi_UFSOpen(afs_int32 ainode)
        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",
@@ -105,7 +105,7 @@ osi_UFSClose(register struct osi_file *afile)
        }
     }
 
-    osi_FreeSmallSpace(afile);
+    osi_FreeLargeSpace(afile);
     return 0;
 }