projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs direct: Change yaffs_malloc to yaffsfs_malloc etc
[yaffs2.git]
/
patches
/
yaffs_linux_allocator.c
diff --git
a/patches/yaffs_linux_allocator.c
b/patches/yaffs_linux_allocator.c
index b538776e497413e8df734692d66ffdc5efcaa1d7..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;