projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs: Fix compile error in multi-version Linux glue
[yaffs2.git]
/
patches
/
yaffs_linux_allocator.c
diff --git
a/patches/yaffs_linux_allocator.c
b/patches/yaffs_linux_allocator.c
index 82ae3dfdbe355cbe1253a4f70c3f9aabb1c7efb5..395f4eac548953198785806e66c7dd8bf2045d5f 100644
(file)
--- a/
patches/yaffs_linux_allocator.c
+++ b/
patches/yaffs_linux_allocator.c
@@
-67,7
+67,7
@@
void yaffs_deinit_raw_tnodes_and_objs(struct yaffs_dev *dev)
YBUG();
}
YBUG();
}
-
YFREE
(allocator);
+
kfree
(allocator);
} else {
T(YAFFS_TRACE_ALWAYS,
} else {
T(YAFFS_TRACE_ALWAYS,
@@
-114,7
+114,7
@@
void yaffs_init_raw_tnodes_and_objs(struct yaffs_dev *dev)
else if(mount_id >= 10){
T(YAFFS_TRACE_ALWAYS,(TSTR("Bad mount_id %u\n"),mount_id));
} else {
else if(mount_id >= 10){
T(YAFFS_TRACE_ALWAYS,(TSTR("Bad mount_id %u\n"),mount_id));
} else {
- allocator =
YMALLOC
(sizeof(yaffs_Allocator));
+ allocator =
kmalloc
(sizeof(yaffs_Allocator));
memset(allocator,0,sizeof(yaffs_Allocator));
dev->allocator = allocator;
memset(allocator,0,sizeof(yaffs_Allocator));
dev->allocator = allocator;
@@
-165,7
+165,7
@@
void yaffs_init_raw_tnodes_and_objs(struct yaffs_dev *dev)
}
}
-
yaffs_tnode_t
*yaffs_alloc_raw_tnode(struct yaffs_dev *dev)
+
struct yaffs_tnode
*yaffs_alloc_raw_tnode(struct yaffs_dev *dev)
{
yaffs_Allocator *allocator = dev->allocator;
if(!allocator || !allocator->tnode_cache){
{
yaffs_Allocator *allocator = dev->allocator;
if(!allocator || !allocator->tnode_cache){
@@
-175,7
+175,7
@@
yaffs_tnode_t *yaffs_alloc_raw_tnode(struct yaffs_dev *dev)
return kmem_cache_alloc(allocator->tnode_cache, GFP_NOFS);
}
return kmem_cache_alloc(allocator->tnode_cache, GFP_NOFS);
}
-void yaffs_free_raw_tnode(struct yaffs_dev *dev,
yaffs_tnode_t
*tn)
+void yaffs_free_raw_tnode(struct yaffs_dev *dev,
struct yaffs_tnode
*tn)
{
yaffs_Allocator *allocator = dev->allocator;
kmem_cache_free(allocator->tnode_cache,tn);
{
yaffs_Allocator *allocator = dev->allocator;
kmem_cache_free(allocator->tnode_cache,tn);