ext2fs: Fix optimization bug for doubly-indirect block pointers
authorAaron Pace <Aaron.Pace@alcatel-lucent.com>
Mon, 26 Jul 2010 20:24:44 +0000 (14:24 -0600)
committerWolfgang Denk <wd@denx.de>
Sat, 7 Aug 2010 20:44:08 +0000 (22:44 +0200)
commita2740dd00da52874d71269eaa06cf4bde549d2fe
tree4280886e44690a636f5c070e282e2e8badbdd6c1
parentc519facc645812c6d174c2d5b60241d23e285642
ext2fs: Fix optimization bug for doubly-indirect block pointers

Doubly-indirect block numbers are compared against the first-level
indirect block when checking for a cached copy.  This is causing the
doubly-indirect block to be re-read each time it is accessed.
Repairing this reduces load time for a 70M file from 72 seconds
to 38 seconds.

Signed-off-by: Aaron Pace <Aaron.Pace@alcatel-lucent.com>
fs/ext2/ext2fs.c