git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
fs
/
fat
/
cache.c
diff --git
a/fs/fat/cache.c
b/fs/fat/cache.c
index
1acc941
..
05c2941
100644
(file)
--- a/
fs/fat/cache.c
+++ b/
fs/fat/cache.c
@@
-34,9
+34,9
@@
static inline int fat_max_cache(struct inode *inode)
return FAT_MAX_CACHE;
}
return FAT_MAX_CACHE;
}
-static
kmem_cache_t
*fat_cache_cachep;
+static
struct kmem_cache
*fat_cache_cachep;
-static void init_once(void *foo,
kmem_cache_t
*cachep, unsigned long flags)
+static void init_once(void *foo,
struct kmem_cache
*cachep, unsigned long flags)
{
struct fat_cache *cache = (struct fat_cache *)foo;
{
struct fat_cache *cache = (struct fat_cache *)foo;
@@
-49,7
+49,7
@@
int __init fat_cache_init(void)
{
fat_cache_cachep = kmem_cache_create("fat_cache",
sizeof(struct fat_cache),
{
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;
init_once, NULL);
if (fat_cache_cachep == NULL)
return -ENOMEM;
@@
-58,13
+58,12
@@
int __init fat_cache_init(void)
void fat_cache_destroy(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)
{
}
static inline struct fat_cache *fat_cache_alloc(struct inode *inode)
{
- return kmem_cache_alloc(fat_cache_cachep,
SLAB
_KERNEL);
+ return kmem_cache_alloc(fat_cache_cachep,
GFP
_KERNEL);
}
static inline void fat_cache_free(struct fat_cache *cache)
}
static inline void fat_cache_free(struct fat_cache *cache)