projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs working on the timothy_tests. just need to save the current state of the program.
[yaffs2.git]
/
yaffs_linux_allocator.c
diff --git
a/yaffs_linux_allocator.c
b/yaffs_linux_allocator.c
index 3fdcc184f871ded15361440678cc7b3c313e4192..f39b9aad28a277b79a280067f5e4632da7ae20d2 100644
(file)
--- a/
yaffs_linux_allocator.c
+++ b/
yaffs_linux_allocator.c
@@
-40,7
+40,7
@@
typedef struct yaffs_AllocatorStruct yaffs_Allocator;
int mount_id;
int mount_id;
-void yaffs_deinit_raw_tnodes_and_objs(yaffs_
Device
*dev)
+void yaffs_deinit_raw_tnodes_and_objs(yaffs_
dev_t
*dev)
{
yaffs_Allocator *allocator = (yaffs_Allocator *)dev->allocator;
{
yaffs_Allocator *allocator = (yaffs_Allocator *)dev->allocator;
@@
-100,7
+100,7
@@
static void (*fake_ctor_list[10]) (void *) = {
fake_ctor9,
};
fake_ctor9,
};
-void yaffs_init_raw_tnodes_and_objs(yaffs_
Device
*dev)
+void yaffs_init_raw_tnodes_and_objs(yaffs_
dev_t
*dev)
{
yaffs_Allocator *allocator;
unsigned mount_id = yaffs_dev_to_lc(dev)->mount_id;
{
yaffs_Allocator *allocator;
unsigned mount_id = yaffs_dev_to_lc(dev)->mount_id;
@@
-129,7
+129,7
@@
void yaffs_init_raw_tnodes_and_objs(yaffs_Device *dev)
allocator->tnode_cache =
kmem_cache_create(allocator->tnode_name,
allocator->tnode_cache =
kmem_cache_create(allocator->tnode_name,
- dev->tnode
S
ize,
+ dev->tnode
_s
ize,
0, 0,
fake_ctor_list[mount_id]);
if(allocator->tnode_cache)
0, 0,
fake_ctor_list[mount_id]);
if(allocator->tnode_cache)
@@
-145,7
+145,7
@@
void yaffs_init_raw_tnodes_and_objs(yaffs_Device *dev)
allocator->object_cache =
kmem_cache_create(allocator->object_name,
allocator->object_cache =
kmem_cache_create(allocator->object_name,
- sizeof(yaffs_
Objec
t),
+ sizeof(yaffs_
obj_
t),
0, 0,
fake_ctor_list[mount_id]);
0, 0,
fake_ctor_list[mount_id]);
@@
-163,7
+163,7
@@
void yaffs_init_raw_tnodes_and_objs(yaffs_Device *dev)
}
}
-yaffs_
Tnode *yaffs_alloc_raw_tnode(yaffs_Device
*dev)
+yaffs_
tnode_t *yaffs_alloc_raw_tnode(yaffs_dev_t
*dev)
{
yaffs_Allocator *allocator = dev->allocator;
if(!allocator || !allocator->tnode_cache){
{
yaffs_Allocator *allocator = dev->allocator;
if(!allocator || !allocator->tnode_cache){
@@
-173,13
+173,13
@@
yaffs_Tnode *yaffs_alloc_raw_tnode(yaffs_Device *dev)
return kmem_cache_alloc(allocator->tnode_cache, GFP_NOFS);
}
return kmem_cache_alloc(allocator->tnode_cache, GFP_NOFS);
}
-void yaffs_free_raw_tnode(yaffs_
Device *dev, yaffs_Tnode
*tn)
+void yaffs_free_raw_tnode(yaffs_
dev_t *dev, yaffs_tnode_t
*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);
}
-yaffs_
Object *yaffs_alloc_raw_obj(yaffs_Device
*dev)
+yaffs_
obj_t *yaffs_alloc_raw_obj(yaffs_dev_t
*dev)
{
yaffs_Allocator *allocator = dev->allocator;
if(!allocator){
{
yaffs_Allocator *allocator = dev->allocator;
if(!allocator){
@@
-193,7
+193,7
@@
yaffs_Object *yaffs_alloc_raw_obj(yaffs_Device *dev)
return kmem_cache_alloc(allocator->object_cache, GFP_NOFS);
}
return kmem_cache_alloc(allocator->object_cache, GFP_NOFS);
}
-void yaffs_free_raw_obj(yaffs_
Device *dev, yaffs_Objec
t *obj)
+void yaffs_free_raw_obj(yaffs_
dev_t *dev, yaffs_obj_
t *obj)
{
yaffs_Allocator *allocator = dev->allocator;
kmem_cache_free(allocator->object_cache,obj);
{
yaffs_Allocator *allocator = dev->allocator;
kmem_cache_free(allocator->object_cache,obj);