[kernel] update to 2.6.25.1 and refresh patches
[openwrt.git] / target / linux / generic-2.6 / patches-2.6.25 / 850-jffs2_erase_progress_indicator.patch
1 Index: linux-2.6.25.1/fs/jffs2/erase.c
2 ===================================================================
3 --- linux-2.6.25.1.orig/fs/jffs2/erase.c
4 +++ linux-2.6.25.1/fs/jffs2/erase.c
5 @@ -35,6 +35,8 @@ static void jffs2_erase_block(struct jff
6  {
7         int ret;
8         uint32_t bad_offset;
9 +       static char s[]="|/-\\", *p=s;
10 +
11  #ifdef __ECOS
12         ret = jffs2_flash_erase(c, jeb);
13         if (!ret) {
14 @@ -47,6 +49,11 @@ static void jffs2_erase_block(struct jff
15  
16         D1(printk(KERN_DEBUG "jffs2_erase_block(): erase block %#08x (range %#08x-%#08x)\n",
17                                 jeb->offset, jeb->offset, jeb->offset + c->sector_size));
18 +
19 +       printk("%c\b", *p);
20 +       if (*++p==0)
21 +       p=s;
22 +
23         instr = kmalloc(sizeof(struct erase_info) + sizeof(struct erase_priv_struct), GFP_KERNEL);
24         if (!instr) {
25                 printk(KERN_WARNING "kmalloc for struct erase_info in jffs2_erase_block failed. Refiling block for later\n");