projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs: Replace YBUG() with BUG()
[yaffs2.git]
/
yaffs_allocator.c
diff --git
a/yaffs_allocator.c
b/yaffs_allocator.c
index af61ec0a796583d458034c7d3dd12bfc50fc46c0..1dd0c27b91682b8cd274d8d4a67d9ddf019566d2 100644
(file)
--- a/
yaffs_allocator.c
+++ b/
yaffs_allocator.c
@@
-47,7
+47,7
@@
static void yaffs_deinit_raw_tnodes(struct yaffs_dev *dev)
struct yaffs_tnode_list *tmp;
if (!allocator) {
struct yaffs_tnode_list *tmp;
if (!allocator) {
-
Y
BUG();
+ BUG();
return;
}
return;
}
@@
-74,7
+74,7
@@
static void yaffs_init_raw_tnodes(struct yaffs_dev *dev)
allocator->n_free_tnodes = 0;
allocator->n_tnodes_created = 0;
} else {
allocator->n_free_tnodes = 0;
allocator->n_tnodes_created = 0;
} else {
-
Y
BUG();
+ BUG();
}
}
}
}
@@
-90,7
+90,7
@@
static int yaffs_create_tnodes(struct yaffs_dev *dev, int n_tnodes)
struct yaffs_tnode_list *tnl;
if (!allocator) {
struct yaffs_tnode_list *tnl;
if (!allocator) {
-
Y
BUG();
+ BUG();
return YAFFS_FAIL;
}
return YAFFS_FAIL;
}
@@
-148,7
+148,7
@@
struct yaffs_tnode *yaffs_alloc_raw_tnode(struct yaffs_dev *dev)
struct yaffs_tnode *tn = NULL;
if (!allocator) {
struct yaffs_tnode *tn = NULL;
if (!allocator) {
-
Y
BUG();
+ BUG();
return NULL;
}
return NULL;
}
@@
-171,7
+171,7
@@
void yaffs_free_raw_tnode(struct yaffs_dev *dev, struct yaffs_tnode *tn)
struct yaffs_allocator *allocator = dev->allocator;
if (!allocator) {
struct yaffs_allocator *allocator = dev->allocator;
if (!allocator) {
-
Y
BUG();
+ BUG();
return;
}
return;
}
@@
-192,7
+192,7
@@
static void yaffs_init_raw_objs(struct yaffs_dev *dev)
allocator->free_objs = NULL;
allocator->n_free_objects = 0;
} else {
allocator->free_objs = NULL;
allocator->n_free_objects = 0;
} else {
-
Y
BUG();
+ BUG();
}
}
}
}
@@
-202,7
+202,7
@@
static void yaffs_deinit_raw_objs(struct yaffs_dev *dev)
struct yaffs_obj_list *tmp;
if (!allocator) {
struct yaffs_obj_list *tmp;
if (!allocator) {
-
Y
BUG();
+ BUG();
return;
}
return;
}
@@
-227,7
+227,7
@@
static int yaffs_create_free_objs(struct yaffs_dev *dev, int n_obj)
struct yaffs_obj_list *list;
if (!allocator) {
struct yaffs_obj_list *list;
if (!allocator) {
-
Y
BUG();
+ BUG();
return YAFFS_FAIL;
}
return YAFFS_FAIL;
}
@@
-274,7
+274,7
@@
struct yaffs_obj *yaffs_alloc_raw_obj(struct yaffs_dev *dev)
struct yaffs_allocator *allocator = dev->allocator;
if (!allocator) {
struct yaffs_allocator *allocator = dev->allocator;
if (!allocator) {
-
Y
BUG();
+ BUG();
return obj;
}
return obj;
}
@@
-298,7
+298,7
@@
void yaffs_free_raw_obj(struct yaffs_dev *dev, struct yaffs_obj *obj)
struct yaffs_allocator *allocator = dev->allocator;
if (!allocator)
struct yaffs_allocator *allocator = dev->allocator;
if (!allocator)
-
Y
BUG();
+ BUG();
else {
/* Link into the free list. */
obj->siblings.next = (struct list_head *)(allocator->free_objs);
else {
/* Link into the free list. */
obj->siblings.next = (struct list_head *)(allocator->free_objs);
@@
-316,7
+316,7
@@
void yaffs_deinit_raw_tnodes_and_objs(struct yaffs_dev *dev)
kfree(dev->allocator);
dev->allocator = NULL;
} else {
kfree(dev->allocator);
dev->allocator = NULL;
} else {
-
Y
BUG();
+ BUG();
}
}
}
}
@@
-332,7
+332,7
@@
void yaffs_init_raw_tnodes_and_objs(struct yaffs_dev *dev)
yaffs_init_raw_objs(dev);
}
} else {
yaffs_init_raw_objs(dev);
}
} else {
-
Y
BUG();
+ BUG();
}
}
}
}