Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'upstream-3.16-rc6' of git://git.infradead.org/linux-ubifs

Pull UBI fixes from Artem Bityutskiy:
"Two UBI fastmap-related fixes for v3.16:

- fix UBI fastmap support which we broke in 3.16-rc1 by reversing the
volumes RB-tree sorting criteria.
- make sure that we scrub all PEBs where we see bit-flips - we were
missing some of them when the fastmap feature was enabled"

* tag 'upstream-3.16-rc6' of git://git.infradead.org/linux-ubifs:
UBI: fastmap: do not miss bit-flips
UBI: fix the volumes tree sorting criteria

+2 -2
+2 -2
drivers/mtd/ubi/fastmap.c
··· 125 125 parent = *p; 126 126 av = rb_entry(parent, struct ubi_ainf_volume, rb); 127 127 128 - if (vol_id < av->vol_id) 128 + if (vol_id > av->vol_id) 129 129 p = &(*p)->rb_left; 130 130 else 131 131 p = &(*p)->rb_right; ··· 423 423 pnum, err); 424 424 ret = err > 0 ? UBI_BAD_FASTMAP : err; 425 425 goto out; 426 - } else if (ret == UBI_IO_BITFLIPS) 426 + } else if (err == UBI_IO_BITFLIPS) 427 427 scrub = 1; 428 428 429 429 /*