]> git.karo-electronics.de Git - mv-sheeva.git/commit
jffs2: Reduce excessive scan of empty blocks
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Thu, 7 Oct 2010 17:09:34 +0000 (19:09 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 25 Oct 2010 00:12:20 +0000 (01:12 +0100)
commit41bdc602eca8738d6f3c71235744f72d888fe6b4
tree93a747b3a9cab9fec548fef795d6fa4102b11558
parent81cfc9f1f4ad8d335367bb393bd042cc45b00047
jffs2: Reduce excessive scan of empty blocks

Scanning 1024 bytes to see if an EB is empty is a bit much.
Lower it to 256 bytes and make sure the while loop is
optimized.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
fs/jffs2/scan.c