]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
JFFS2: Use CLEANMARKER to reduce scanning time
authorMark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
Wed, 1 Jul 2015 04:38:28 +0000 (16:38 +1200)
committerTom Rini <trini@konsulko.com>
Thu, 13 Aug 2015 00:47:32 +0000 (20:47 -0400)
commit54a883840be500cbcda4903118dd571e4532e83f
tree69c06c7ebbcaac2d4ee75d7e2ab313b76512643b
parent081adef7e61be60c1328098cd19cb5aa6ceda21f
JFFS2: Use CLEANMARKER to reduce scanning time

If a sector has a CLEANMARKER at the beginning, it indicates that the
entire sector has been erased. Therefore, if this is found, we can skip the
entire block. This was not being done before this patch.

The code now does the same as the kernel does when encountering a
CLEANMARKER. It still checks that the next few words are FFFFFFFF, and if
so, the block is assumed to be empty, and so is skipped.

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