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 d4205fa25f976affada958f132907462440425c7..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_
DeinitialiseRawTnodesAndObjects(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,10
+100,10
@@
static void (*fake_ctor_list[10]) (void *) = {
fake_ctor9,
};
fake_ctor9,
};
-void yaffs_
InitialiseRawTnodesAndObjects(yaffs_Device
*dev)
+void yaffs_
init_raw_tnodes_and_objs(yaffs_dev_t
*dev)
{
yaffs_Allocator *allocator;
{
yaffs_Allocator *allocator;
- unsigned mount_id = yaffs_
DeviceToLC
(dev)->mount_id;
+ unsigned mount_id = yaffs_
dev_to_lc
(dev)->mount_id;
T(YAFFS_TRACE_ALLOCATE,(TSTR("Initialising yaffs allocator\n")));
T(YAFFS_TRACE_ALLOCATE,(TSTR("Initialising yaffs allocator\n")));
@@
-129,7
+129,7
@@
void yaffs_InitialiseRawTnodesAndObjects(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_InitialiseRawTnodesAndObjects(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_InitialiseRawTnodesAndObjects(yaffs_Device *dev)
}
}
-yaffs_
Tnode *yaffs_AllocateRawTnode(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_AllocateRawTnode(yaffs_Device *dev)
return kmem_cache_alloc(allocator->tnode_cache, GFP_NOFS);
}
return kmem_cache_alloc(allocator->tnode_cache, GFP_NOFS);
}
-void yaffs_
FreeRawTnode(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_AllocateRawObject(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_AllocateRawObject(yaffs_Device *dev)
return kmem_cache_alloc(allocator->object_cache, GFP_NOFS);
}
return kmem_cache_alloc(allocator->object_cache, GFP_NOFS);
}
-void yaffs_
FreeRawObject(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);