cache.c (95d465fd750897ab32462a6702fbfe1b122cbbc0) cache.c (1a1d92c10dd24bbdc28b3d6e2d03ec199dd3a65b)
1/*
2 * linux/fs/fat/cache.c
3 *
4 * Written 1992,1993 by Werner Almesberger
5 *
6 * Mar 1999. AV. Changed cache, so that it uses the starting cluster instead
7 * of inode number.
8 * May 1999. AV. Fixed the bogosity with FAT32 (read "FAT28"). Fscking lusers.

--- 44 unchanged lines hidden (view full) ---

53 init_once, NULL);
54 if (fat_cache_cachep == NULL)
55 return -ENOMEM;
56 return 0;
57}
58
59void fat_cache_destroy(void)
60{
1/*
2 * linux/fs/fat/cache.c
3 *
4 * Written 1992,1993 by Werner Almesberger
5 *
6 * Mar 1999. AV. Changed cache, so that it uses the starting cluster instead
7 * of inode number.
8 * May 1999. AV. Fixed the bogosity with FAT32 (read "FAT28"). Fscking lusers.

--- 44 unchanged lines hidden (view full) ---

53 init_once, NULL);
54 if (fat_cache_cachep == NULL)
55 return -ENOMEM;
56 return 0;
57}
58
59void fat_cache_destroy(void)
60{
61 if (kmem_cache_destroy(fat_cache_cachep))
62 printk(KERN_INFO "fat_cache: not all structures were freed\n");
61 kmem_cache_destroy(fat_cache_cachep);
63}
64
65static inline struct fat_cache *fat_cache_alloc(struct inode *inode)
66{
67 return kmem_cache_alloc(fat_cache_cachep, SLAB_KERNEL);
68}
69
70static inline void fat_cache_free(struct fat_cache *cache)

--- 262 unchanged lines hidden ---
62}
63
64static inline struct fat_cache *fat_cache_alloc(struct inode *inode)
65{
66 return kmem_cache_alloc(fat_cache_cachep, SLAB_KERNEL);
67}
68
69static inline void fat_cache_free(struct fat_cache *cache)

--- 262 unchanged lines hidden ---