projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs: More clean up.
[yaffs2.git]
/
yaffs_yaffs1.c
diff --git
a/yaffs_yaffs1.c
b/yaffs_yaffs1.c
index 3acb1d2be92483e672540e427313cd190e82cdd0..381696281569ad2d0984e7cc9a553d55e6e1a027 100644
(file)
--- a/
yaffs_yaffs1.c
+++ b/
yaffs_yaffs1.c
@@
-28,9
+28,9
@@
int yaffs1_scan(struct yaffs_dev *dev)
int chunk;
int c;
int deleted;
int chunk;
int c;
int deleted;
-
yaffs_block_state_t
state;
+
enum yaffs_block_state
state;
struct yaffs_obj *hard_list = NULL;
struct yaffs_obj *hard_list = NULL;
-
yaffs_block_info_t
*bi;
+
struct yaffs_block_info
*bi;
u32 seq_number;
struct yaffs_obj_hdr *oh;
struct yaffs_obj *in;
u32 seq_number;
struct yaffs_obj_hdr *oh;
struct yaffs_obj *in;
@@
-38,7
+38,7
@@
int yaffs1_scan(struct yaffs_dev *dev)
int alloc_failed = 0;
int alloc_failed = 0;
- struct yaffs_shadow_fixer
_s
*shadow_fixers = NULL;
+ struct yaffs_shadow_fixer *shadow_fixers = NULL;
u8 *chunk_data;
u8 *chunk_data;
@@
-216,8
+216,8
@@
int yaffs1_scan(struct yaffs_dev *dev)
if (in && oh->shadows_obj > 0) {
if (in && oh->shadows_obj > 0) {
- struct yaffs_shadow_fixer
_s
*fixer;
- fixer = YMALLOC(sizeof(struct yaffs_shadow_fixer
_s
));
+ struct yaffs_shadow_fixer *fixer;
+ fixer = YMALLOC(sizeof(struct yaffs_shadow_fixer));
if (fixer) {
fixer->next = shadow_fixers;
shadow_fixers = fixer;
if (fixer) {
fixer->next = shadow_fixers;
shadow_fixers = fixer;
@@
-320,7
+320,7
@@
int yaffs1_scan(struct yaffs_dev *dev)
/* Set up as a directory */
parent->variant_type =
YAFFS_OBJECT_TYPE_DIRECTORY;
/* Set up as a directory */
parent->variant_type =
YAFFS_OBJECT_TYPE_DIRECTORY;
-
Y
INIT_LIST_HEAD(&parent->variant.
+ INIT_LIST_HEAD(&parent->variant.
dir_variant.
children);
} else if (!parent || parent->variant_type !=
dir_variant.
children);
} else if (!parent || parent->variant_type !=
@@
-367,7
+367,7
@@
int yaffs1_scan(struct yaffs_dev *dev)
equiv_id =
oh->equiv_id;
in->hard_links.next =
equiv_id =
oh->equiv_id;
in->hard_links.next =
- (struct
y
list_head *)
+ (struct list_head *)
hard_list;
hard_list = in;
break;
hard_list;
hard_list = in;
break;
@@
-422,7
+422,7
@@
int yaffs1_scan(struct yaffs_dev *dev)
/* Fix up any shadowed objects */
{
/* Fix up any shadowed objects */
{
- struct yaffs_shadow_fixer
_s
*fixer;
+ struct yaffs_shadow_fixer *fixer;
struct yaffs_obj *obj;
while (shadow_fixers) {
struct yaffs_obj *obj;
while (shadow_fixers) {