]> git.ipfire.org Git - thirdparty/u-boot.git/commit
JFFS2: Only list each directory entry once
authorMark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
Wed, 1 Jul 2015 04:38:24 +0000 (16:38 +1200)
committerTom Rini <trini@konsulko.com>
Thu, 13 Aug 2015 00:47:30 +0000 (20:47 -0400)
commit891224a5d8a54200d8b587284cab18b693a72dea
treed91cc304ef35f1a91c4c97608c7382849e4270b1
parent225cf4cdf9ffd73978f4a266d3ecc6c88b048a74
JFFS2: Only list each directory entry once

If multiple versions of a file exist, only the most recent version
should be used. The scheme to write 0 for the inode in older versions
did not work, since this would have required writing to flash.

The only time this caused an issue was listing a directory, where older
versions of the file would still be seen. Since the directory entries
are sorted, just look at the next entry in the list, and if it's the same
move to that entry instead.

Signed-off-by: Mark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
fs/jffs2/jffs2_1pass.c