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
/
hfsplus
/
super.c
diff --git
a/fs/hfsplus/super.c
b/fs/hfsplus/super.c
index
d279d59
..
0f513c6
100644
(file)
--- a/
fs/hfsplus/super.c
+++ b/
fs/hfsplus/super.c
@@
-434,13
+434,13
@@
MODULE_AUTHOR("Brad Boyer");
MODULE_DESCRIPTION("Extended Macintosh Filesystem");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Extended Macintosh Filesystem");
MODULE_LICENSE("GPL");
-static
kmem_cache_t
*hfsplus_inode_cachep;
+static
struct kmem_cache
*hfsplus_inode_cachep;
static struct inode *hfsplus_alloc_inode(struct super_block *sb)
{
struct hfsplus_inode_info *i;
static struct inode *hfsplus_alloc_inode(struct super_block *sb)
{
struct hfsplus_inode_info *i;
- i = kmem_cache_alloc(hfsplus_inode_cachep,
SLAB
_KERNEL);
+ i = kmem_cache_alloc(hfsplus_inode_cachep,
GFP
_KERNEL);
return i ? &i->vfs_inode : NULL;
}
return i ? &i->vfs_inode : NULL;
}
@@
-467,7
+467,7
@@
static struct file_system_type hfsplus_fs_type = {
.fs_flags = FS_REQUIRES_DEV,
};
.fs_flags = FS_REQUIRES_DEV,
};
-static void hfsplus_init_once(void *p,
kmem_cache_t
*cachep, unsigned long flags)
+static void hfsplus_init_once(void *p,
struct kmem_cache
*cachep, unsigned long flags)
{
struct hfsplus_inode_info *i = p;
{
struct hfsplus_inode_info *i = p;
@@
-493,8
+493,7
@@
static int __init init_hfsplus_fs(void)
static void __exit exit_hfsplus_fs(void)
{
unregister_filesystem(&hfsplus_fs_type);
static void __exit exit_hfsplus_fs(void)
{
unregister_filesystem(&hfsplus_fs_type);
- if (kmem_cache_destroy(hfsplus_inode_cachep))
- printk(KERN_ERR "hfsplus_inode_cache: not all structures were freed\n");
+ kmem_cache_destroy(hfsplus_inode_cachep);
}
module_init(init_hfsplus_fs)
}
module_init(init_hfsplus_fs)