From: David Woodhouse Date: Sat, 20 May 2006 15:13:34 +0000 (+0100) Subject: [JFFS2] Optimise reading of eraseblock summary nodes X-Git-Tag: v2.6.18-rc1~1105^2~74^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9641b784ff82cf0a48a6c70ef9867f5fd728de67;p=pandora-kernel.git [JFFS2] Optimise reading of eraseblock summary nodes This improves the time to mount 512MiB of NAND flash on my OLPC prototype by about 4%. We used to read the last page of the eraseblock twice -- once to find the offset of the summary node, and again to actually _read_ the summary node. Now we read the last page only once, and read more only if we need to. We also don't allocate a new buffer just for the summary code -- we use the buffer which was already allocated for the scan. Better still, if the 'buffer' for the scan is actually just a pointer directly into NOR flash, we use that too, avoiding the memcpy() which we used to do. Signed-off-by: David Woodhouse --- Reading git-diff-tree failed