summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Manning <cdhmanning@gmail.com>2011-01-26 13:25:49 +1300
committerCharles Manning <cdhmanning@gmail.com>2011-01-26 13:25:49 +1300
commit2c8eb2bdc3e753893ecc0dd0cd9cba791d4e16db (patch)
treee133bfb02812b0b197a84f479240fb716c3351cd
parent2621bcf7c81e3add56dc18c49177c5572d358f4a (diff)
yaffs: Remove malloc allocator
Unused test code. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
-rw-r--r--yaffs_allocator.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/yaffs_allocator.c b/yaffs_allocator.c
index 59cce04..af61ec0 100644
--- a/yaffs_allocator.c
+++ b/yaffs_allocator.c
@@ -16,54 +16,6 @@
#include "yaffs_trace.h"
#include "yportenv.h"
-#ifdef CONFIG_YAFFS_KMALLOC_ALLOCATOR
-/* This is an alternative debug allocator. Don't use for production code. */
-
-void yaffs_deinit_raw_tnodes_and_objs(struct yaffs_dev *dev)
-{
- dev = dev;
-}
-
-void yaffs_init_raw_tnodes_and_objs(struct yaffs_dev *dev)
-{
- dev = dev;
-}
-
-struct yaffs_tnode *yaffs_alloc_raw_tnode(struct yaffs_dev *dev)
-{
- return kmalloc(dev->tnode_size, GFP_NOFS);
-}
-
-void yaffs_free_raw_tnode(struct yaffs_dev *dev, struct yaffs_tnode *tn)
-{
- dev = dev;
- kfree(tn);
-}
-
-void yaffs_init_raw_objs(struct yaffs_dev *dev)
-{
- dev = dev;
-}
-
-void yaffs_deinit_raw_objs(struct yaffs_dev *dev)
-{
- dev = dev;
-}
-
-struct yaffs_obj *yaffs_alloc_raw_obj(struct yaffs_dev *dev)
-{
- dev = dev;
- return kmalloc(sizeof(struct yaffs_obj));
-}
-
-void yaffs_free_raw_obj(struct yaffs_dev *dev, struct yaffs_obj *obj)
-{
-
- dev = dev;
- kfree(obj);
-}
-
-#else
struct yaffs_tnode_list {
struct yaffs_tnode_list *next;
@@ -384,4 +336,3 @@ void yaffs_init_raw_tnodes_and_objs(struct yaffs_dev *dev)
}
}
-#endif