jffs2: rewrite jffs2 scanning code based on Linux one
authorIlya Yanok <yanok@emcraft.com>
Thu, 13 Nov 2008 16:49:33 +0000 (19:49 +0300)
committerWolfgang Denk <wd@denx.de>
Tue, 9 Dec 2008 22:39:16 +0000 (23:39 +0100)
commit8a36d31f72411144ac0412ee7e1880e801acd754
treefa9b97e79a48ca7cff5bc729230a67f796e25c4b
parente0b5532579eda8b4629f1b4f6e49c3cc60f52237
jffs2: rewrite jffs2 scanning code based on Linux one

Rewrites jffs2_1pass_build_lists() function in style of Linux's
jffs2_scan_medium() and jffs2_scan_eraseblock().
This includes:
 - Caching flash acceses
 - Smart dealing with free space

Signed-off-by: Alexey Neyman <avn@emcraft.com>
Signed-off-by: Ilya Yanok <yanok@emcraft.com>
fs/jffs2/jffs2_1pass.c