]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/fat/cache.c
[SERIAL] OMAP1510 serial fix for 115200 baud
[linux-2.6-omap-h63xx.git] / fs / fat / cache.c
index 1acc941245fb4a4c751c972684202b19d0f2208a..82cc4f59e3bae3302abd291b392eccb90f4e1be4 100644 (file)
@@ -49,7 +49,7 @@ int __init fat_cache_init(void)
 {
        fat_cache_cachep = kmem_cache_create("fat_cache",
                                sizeof(struct fat_cache),
-                               0, SLAB_RECLAIM_ACCOUNT,
+                               0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD,
                                init_once, NULL);
        if (fat_cache_cachep == NULL)
                return -ENOMEM;
@@ -58,8 +58,7 @@ int __init fat_cache_init(void)
 
 void fat_cache_destroy(void)
 {
-       if (kmem_cache_destroy(fat_cache_cachep))
-               printk(KERN_INFO "fat_cache: not all structures were freed\n");
+       kmem_cache_destroy(fat_cache_cachep);
 }
 
 static inline struct fat_cache *fat_cache_alloc(struct inode *inode)