projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs More symbol changes
[yaffs2.git]
/
yaffs_allocator.c
diff --git
a/yaffs_allocator.c
b/yaffs_allocator.c
index 41200eebb4a71b4b9a48c4a05793782221f7fe3c..1501a8e54399171ec50683c5bfb41f05c65e7f7c 100644
(file)
--- a/
yaffs_allocator.c
+++ b/
yaffs_allocator.c
@@
-31,12
+31,12
@@
void yaffs_init_raw_tnodes_and_objs(yaffs_Device *dev)
dev = dev;
}
dev = dev;
}
-yaffs_
Tnode
*yaffs_alloc_raw_tnode(yaffs_Device *dev)
+yaffs_
tnode_t
*yaffs_alloc_raw_tnode(yaffs_Device *dev)
{
{
- return (yaffs_
Tnode
*)YMALLOC(dev->tnodeSize);
+ return (yaffs_
tnode_t
*)YMALLOC(dev->tnodeSize);
}
}
-void yaffs_free_raw_tnode(yaffs_Device *dev, yaffs_
Tnode
*tn)
+void yaffs_free_raw_tnode(yaffs_Device *dev, yaffs_
tnode_t
*tn)
{
dev = dev;
YFREE(tn);
{
dev = dev;
YFREE(tn);
@@
-68,12
+68,12
@@
void yaffs_free_raw_obj(yaffs_Device *dev, yaffs_Object *obj)
#else
#else
-struct yaffs_
TnodeList_struc
t {
- struct yaffs_
TnodeList_struc
t *next;
- yaffs_
Tnode
*tnodes;
+struct yaffs_
tnode_lis
t {
+ struct yaffs_
tnode_lis
t *next;
+ yaffs_
tnode_t
*tnodes;
};
};
-typedef struct yaffs_
TnodeList_struct yaffs_TnodeLis
t;
+typedef struct yaffs_
tnode_list yaffs_tnodelist_
t;
struct yaffs_ObjectList_struct {
yaffs_Object *objects;
struct yaffs_ObjectList_struct {
yaffs_Object *objects;
@@
-85,9
+85,9
@@
typedef struct yaffs_ObjectList_struct yaffs_ObjectList;
struct yaffs_AllocatorStruct {
int nTnodesCreated;
struct yaffs_AllocatorStruct {
int nTnodesCreated;
- yaffs_
Tnode
*freeTnodes;
+ yaffs_
tnode_t
*freeTnodes;
int nFreeTnodes;
int nFreeTnodes;
- yaffs_
TnodeLis
t *allocatedTnodeList;
+ yaffs_
tnodelist_
t *allocatedTnodeList;
int nObjectsCreated;
yaffs_Object *freeObjects;
int nObjectsCreated;
yaffs_Object *freeObjects;
@@
-104,7
+104,7
@@
static void yaffs_deinit_raw_tnodes(yaffs_Device *dev)
yaffs_Allocator *allocator = (yaffs_Allocator *)dev->allocator;
yaffs_Allocator *allocator = (yaffs_Allocator *)dev->allocator;
- yaffs_
TnodeLis
t *tmp;
+ yaffs_
tnodelist_
t *tmp;
if(!allocator){
YBUG();
if(!allocator){
YBUG();
@@
-142,11
+142,11
@@
static int yaffs_create_tnodes(yaffs_Device *dev, int nTnodes)
{
yaffs_Allocator *allocator = (yaffs_Allocator *)dev->allocator;
int i;
{
yaffs_Allocator *allocator = (yaffs_Allocator *)dev->allocator;
int i;
- yaffs_
Tnode
*newTnodes;
+ yaffs_
tnode_t
*newTnodes;
__u8 *mem;
__u8 *mem;
- yaffs_
Tnode
*curr;
- yaffs_
Tnode
*next;
- yaffs_
TnodeLis
t *tnl;
+ yaffs_
tnode_t
*curr;
+ yaffs_
tnode_t
*next;
+ yaffs_
tnodelist_
t *tnl;
if(!allocator){
YBUG();
if(!allocator){
YBUG();
@@
-170,14
+170,14
@@
static int yaffs_create_tnodes(yaffs_Device *dev, int nTnodes)
/* New hookup for wide tnodes */
for (i = 0; i < nTnodes - 1; i++) {
/* New hookup for wide tnodes */
for (i = 0; i < nTnodes - 1; i++) {
- curr = (yaffs_
Tnode
*) &mem[i * dev->tnodeSize];
- next = (yaffs_
Tnode
*) &mem[(i+1) * dev->tnodeSize];
+ curr = (yaffs_
tnode_t
*) &mem[i * dev->tnodeSize];
+ next = (yaffs_
tnode_t
*) &mem[(i+1) * dev->tnodeSize];
curr->internal[0] = next;
}
curr->internal[0] = next;
}
- curr = (yaffs_
Tnode
*) &mem[(nTnodes - 1) * dev->tnodeSize];
+ curr = (yaffs_
tnode_t
*) &mem[(nTnodes - 1) * dev->tnodeSize];
curr->internal[0] = allocator->freeTnodes;
curr->internal[0] = allocator->freeTnodes;
- allocator->freeTnodes = (yaffs_
Tnode
*)mem;
+ allocator->freeTnodes = (yaffs_
tnode_t
*)mem;
allocator->nFreeTnodes += nTnodes;
allocator->nTnodesCreated += nTnodes;
allocator->nFreeTnodes += nTnodes;
allocator->nTnodesCreated += nTnodes;
@@
-187,7
+187,7
@@
static int yaffs_create_tnodes(yaffs_Device *dev, int nTnodes)
* but it just means we can't free this bunch of tnodes later.
*/
* but it just means we can't free this bunch of tnodes later.
*/
- tnl = YMALLOC(sizeof(yaffs_
TnodeLis
t));
+ tnl = YMALLOC(sizeof(yaffs_
tnodelist_
t));
if (!tnl) {
T(YAFFS_TRACE_ERROR,
(TSTR
if (!tnl) {
T(YAFFS_TRACE_ERROR,
(TSTR
@@
-205,10
+205,10
@@
static int yaffs_create_tnodes(yaffs_Device *dev, int nTnodes)
}
}
-yaffs_
Tnode
*yaffs_alloc_raw_tnode(yaffs_Device *dev)
+yaffs_
tnode_t
*yaffs_alloc_raw_tnode(yaffs_Device *dev)
{
yaffs_Allocator *allocator = (yaffs_Allocator *)dev->allocator;
{
yaffs_Allocator *allocator = (yaffs_Allocator *)dev->allocator;
- yaffs_
Tnode
*tn = NULL;
+ yaffs_
tnode_t
*tn = NULL;
if(!allocator){
YBUG();
if(!allocator){
YBUG();
@@
-229,7
+229,7
@@
yaffs_Tnode *yaffs_alloc_raw_tnode(yaffs_Device *dev)
}
/* FreeTnode frees up a tnode and puts it back on the free list */
}
/* FreeTnode frees up a tnode and puts it back on the free list */
-void yaffs_free_raw_tnode(yaffs_Device *dev, yaffs_
Tnode
*tn)
+void yaffs_free_raw_tnode(yaffs_Device *dev, yaffs_
tnode_t
*tn)
{
yaffs_Allocator *allocator = dev->allocator;
{
yaffs_Allocator *allocator = dev->allocator;