diff options
Diffstat (limited to 'fs/jffs2/wbuf.c')
-rw-r--r-- | fs/jffs2/wbuf.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/fs/jffs2/wbuf.c b/fs/jffs2/wbuf.c index 316133c626b7..85ae51d2060a 100644 --- a/fs/jffs2/wbuf.c +++ b/fs/jffs2/wbuf.c | |||
@@ -9,7 +9,7 @@ | |||
9 | * | 9 | * |
10 | * For licensing information, see the file 'LICENCE' in this directory. | 10 | * For licensing information, see the file 'LICENCE' in this directory. |
11 | * | 11 | * |
12 | * $Id: wbuf.c,v 1.92 2005/04/05 12:51:54 dedekind Exp $ | 12 | * $Id: wbuf.c,v 1.93 2005/07/17 06:56:21 dedekind Exp $ |
13 | * | 13 | * |
14 | */ | 14 | */ |
15 | 15 | ||
@@ -139,7 +139,7 @@ static void jffs2_block_refile(struct jffs2_sb_info *c, struct jffs2_eraseblock | |||
139 | { | 139 | { |
140 | D1(printk("About to refile bad block at %08x\n", jeb->offset)); | 140 | D1(printk("About to refile bad block at %08x\n", jeb->offset)); |
141 | 141 | ||
142 | D2(jffs2_dump_block_lists(c)); | 142 | D2(jffs2_dbg_dump_block_lists(c)); |
143 | /* File the existing block on the bad_used_list.... */ | 143 | /* File the existing block on the bad_used_list.... */ |
144 | if (c->nextblock == jeb) | 144 | if (c->nextblock == jeb) |
145 | c->nextblock = NULL; | 145 | c->nextblock = NULL; |
@@ -156,7 +156,7 @@ static void jffs2_block_refile(struct jffs2_sb_info *c, struct jffs2_eraseblock | |||
156 | c->nr_erasing_blocks++; | 156 | c->nr_erasing_blocks++; |
157 | jffs2_erase_pending_trigger(c); | 157 | jffs2_erase_pending_trigger(c); |
158 | } | 158 | } |
159 | D2(jffs2_dump_block_lists(c)); | 159 | D2(jffs2_dbg_dump_block_lists(c)); |
160 | 160 | ||
161 | /* Adjust its size counts accordingly */ | 161 | /* Adjust its size counts accordingly */ |
162 | c->wasted_size += jeb->free_size; | 162 | c->wasted_size += jeb->free_size; |
@@ -164,8 +164,8 @@ static void jffs2_block_refile(struct jffs2_sb_info *c, struct jffs2_eraseblock | |||
164 | jeb->wasted_size += jeb->free_size; | 164 | jeb->wasted_size += jeb->free_size; |
165 | jeb->free_size = 0; | 165 | jeb->free_size = 0; |
166 | 166 | ||
167 | ACCT_SANITY_CHECK(c,jeb); | 167 | jffs2_dbg_acct_sanity_check(c,jeb); |
168 | D1(ACCT_PARANOIA_CHECK(jeb)); | 168 | jffs2_dbg_acct_paranoia_check(c, jeb); |
169 | } | 169 | } |
170 | 170 | ||
171 | /* Recover from failure to write wbuf. Recover the nodes up to the | 171 | /* Recover from failure to write wbuf. Recover the nodes up to the |
@@ -392,11 +392,11 @@ static void jffs2_wbuf_recover(struct jffs2_sb_info *c) | |||
392 | else | 392 | else |
393 | jeb->last_node = container_of(first_raw, struct jffs2_raw_node_ref, next_phys); | 393 | jeb->last_node = container_of(first_raw, struct jffs2_raw_node_ref, next_phys); |
394 | 394 | ||
395 | ACCT_SANITY_CHECK(c,jeb); | 395 | jffs2_dbg_acct_sanity_check(c,jeb); |
396 | D1(ACCT_PARANOIA_CHECK(jeb)); | 396 | jffs2_dbg_acct_paranoia_check(c, jeb); |
397 | 397 | ||
398 | ACCT_SANITY_CHECK(c,new_jeb); | 398 | jffs2_dbg_acct_sanity_check(c,new_jeb); |
399 | D1(ACCT_PARANOIA_CHECK(new_jeb)); | 399 | jffs2_dbg_acct_paranoia_check(c, new_jeb); |
400 | 400 | ||
401 | spin_unlock(&c->erase_completion_lock); | 401 | spin_unlock(&c->erase_completion_lock); |
402 | 402 | ||
@@ -973,7 +973,7 @@ int jffs2_check_oob_empty( struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb | |||
973 | 973 | ||
974 | if (buf[i] != 0xFF) { | 974 | if (buf[i] != 0xFF) { |
975 | D2(printk(KERN_DEBUG "Found %02x at %x in OOB for %08x\n", | 975 | D2(printk(KERN_DEBUG "Found %02x at %x in OOB for %08x\n", |
976 | buf[page+i], page+i, jeb->offset)); | 976 | buf[i], i, jeb->offset)); |
977 | ret = 1; | 977 | ret = 1; |
978 | goto out; | 978 | goto out; |
979 | } | 979 | } |