diff options
author | Kevin | 2014-11-15 10:00:36 +0800 |
---|---|---|
committer | Kevin | 2014-11-15 10:00:36 +0800 |
commit | 9d40ac5867b9aefe0722bc1f110b965ff294d30d (patch) | |
tree | de942df665fac4bac0d9cb7ae86910fe937b0c1a /ANDROID_3.4.5/fs/ubifs/recovery.c | |
parent | 392e8802486cb573b916e746010e141a75f507e6 (diff) | |
download | FOSSEE-netbook-kernel-source-9d40ac5867b9aefe0722bc1f110b965ff294d30d.tar.gz FOSSEE-netbook-kernel-source-9d40ac5867b9aefe0722bc1f110b965ff294d30d.tar.bz2 FOSSEE-netbook-kernel-source-9d40ac5867b9aefe0722bc1f110b965ff294d30d.zip |
add via modify part source code for wm8880 4.4 kitkat
Diffstat (limited to 'ANDROID_3.4.5/fs/ubifs/recovery.c')
-rw-r--r-- | ANDROID_3.4.5/fs/ubifs/recovery.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ANDROID_3.4.5/fs/ubifs/recovery.c b/ANDROID_3.4.5/fs/ubifs/recovery.c index 2a935b31..0398d717 100644 --- a/ANDROID_3.4.5/fs/ubifs/recovery.c +++ b/ANDROID_3.4.5/fs/ubifs/recovery.c @@ -639,7 +639,7 @@ struct ubifs_scan_leb *ubifs_recover_leb(struct ubifs_info *c, int lnum, int grouped = jhead == -1 ? 0 : c->jheads[jhead].grouped; struct ubifs_scan_leb *sleb; void *buf = sbuf + offs; - + int corruption; dbg_rcvry("%d:%d, jhead %d, grouped %d", lnum, offs, jhead, grouped); sleb = ubifs_start_scan(c, lnum, offs, sbuf); @@ -697,7 +697,7 @@ struct ubifs_scan_leb *ubifs_recover_leb(struct ubifs_info *c, int lnum, goto corrupted_rescan; } else if (!is_empty(buf, len)) { if (!is_last_write(c, buf, offs)) { - int corruption = first_non_ff(buf, len); + corruption = first_non_ff(buf, len); /* * See header comment for this file for more @@ -711,7 +711,7 @@ struct ubifs_scan_leb *ubifs_recover_leb(struct ubifs_info *c, int lnum, goto corrupted; } } - +test: min_io_unit = round_down(offs, c->min_io_size); if (grouped) /* @@ -793,6 +793,9 @@ corrupted_rescan: ubifs_scan_a_node(c, buf, len, lnum, offs, 1); corrupted: ubifs_scanned_corruption(c, lnum, offs, buf); + offs -= corruption; + buf -= corruption; + goto test; err = -EUCLEAN; error: ubifs_err("LEB %d scanning failed", lnum); |