jffs2: fix searching for latest version in jffs2_1pass_list_inodes()
authorIlya Yanok <yanok@emcraft.com>
Thu, 13 Nov 2008 16:49:31 +0000 (19:49 +0300)
committerWolfgang Denk <wd@denx.de>
Tue, 9 Dec 2008 22:38:21 +0000 (23:38 +0100)
commitf73846956778a7dfee83403ef9747aff77198848
tree59d9260bd44fe2281a3d358e22972d36487a6894
parent1113cb764b3da256ef8a1f9539f4efbe221ff3c4
jffs2: fix searching for latest version in jffs2_1pass_list_inodes()

We need to update i_version inside cycle to find really latest version
inside jffs2_1pass_list_inodes(). With that fixed we can use isize inside
dump_inode() instead of calling expensive jffs2_1pass_read_inode().

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