UBI: fix ubi free PEBs count calculation
authorTanya Brokhman <tlinder@codeaurora.org>
Tue, 1 Apr 2014 08:02:07 +0000 (11:02 +0300)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Mon, 5 May 2014 06:31:33 +0000 (09:31 +0300)
commit3d21bb7667c4b57a15077d60d23385d9a1c01d08
tree57b08041e00f9b3c50accc2783c79a0004eed358
parent87ed89d21ede38f86be9419ca7c6dd4761764bbb
UBI: fix ubi free PEBs count calculation

The ubi->free_count should be updated with every insert/remove to/from
the ubi->free list.

Signed-off-by: Tanya Brokhman <tlinder@codeaurora.org>
Reviewed-by: Dolev Raviv <draviv@codeaurora.org>
Acked-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/ubi/wl.c