diff options
Diffstat (limited to 'fs/jffs2/scan.c')
-rw-r--r-- | fs/jffs2/scan.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/jffs2/scan.c b/fs/jffs2/scan.c index 078cede67141..7654e87b0428 100644 --- a/fs/jffs2/scan.c +++ b/fs/jffs2/scan.c | |||
@@ -9,6 +9,8 @@ | |||
9 | * | 9 | * |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
13 | |||
12 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
13 | #include <linux/sched.h> | 15 | #include <linux/sched.h> |
14 | #include <linux/slab.h> | 16 | #include <linux/slab.h> |
@@ -218,15 +220,14 @@ int jffs2_scan_medium(struct jffs2_sb_info *c) | |||
218 | case BLK_STATE_ALLDIRTY: | 220 | case BLK_STATE_ALLDIRTY: |
219 | /* Nothing valid - not even a clean marker. Needs erasing. */ | 221 | /* Nothing valid - not even a clean marker. Needs erasing. */ |
220 | /* For now we just put it on the erasing list. We'll start the erases later */ | 222 | /* For now we just put it on the erasing list. We'll start the erases later */ |
221 | jffs2_dbg(1, "JFFS2: Erase block at 0x%08x is not formatted. It will be erased\n", | 223 | jffs2_dbg(1, "Erase block at 0x%08x is not formatted. It will be erased\n", |
222 | jeb->offset); | 224 | jeb->offset); |
223 | list_add(&jeb->list, &c->erase_pending_list); | 225 | list_add(&jeb->list, &c->erase_pending_list); |
224 | c->nr_erasing_blocks++; | 226 | c->nr_erasing_blocks++; |
225 | break; | 227 | break; |
226 | 228 | ||
227 | case BLK_STATE_BADBLOCK: | 229 | case BLK_STATE_BADBLOCK: |
228 | jffs2_dbg(1, "JFFS2: Block at 0x%08x is bad\n", | 230 | jffs2_dbg(1, "Block at 0x%08x is bad\n", jeb->offset); |
229 | jeb->offset); | ||
230 | list_add(&jeb->list, &c->bad_list); | 231 | list_add(&jeb->list, &c->bad_list); |
231 | c->bad_size += c->sector_size; | 232 | c->bad_size += c->sector_size; |
232 | c->free_size -= c->sector_size; | 233 | c->free_size -= c->sector_size; |