From: Wolfgang Denk Date: Tue, 09 Dec 2008 23:41:34 +0100 Subject: [U-Boot] [PATCH 6/6] jffs2: cache data_crc results In-Reply-To: <1226594976-6087-7-git-send-email-yanok@emcraft.com> References: <1226594976-6087-1-git-send-email-yanok@emcraft.com> <1226594976-6087-7-git-send-email-yanok@emcraft.com> Message-ID: <20081209224134.6F5AD834B020@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Ilya Yanok, In message <1226594976-6087-7-git-send-email-yanok@emcraft.com> you wrote: > As we moved data_crc() invocation from jffs2_1pass_build_lists() to > jffs2_1pass_read_inode() data_crc is going to be calculated on each > inode access. This patch adds caching of data_crc() results. There > is no significant improvement in speed (because of flash access > caching added in previous patch I think, crc in RAM is really fast) > but this patch impacts memory usage -- every b_node structure uses > 12 bytes instead of 8. > > Signed-off-by: Alexey Neyman > Signed-off-by: Ilya Yanok > --- > fs/jffs2/jffs2_1pass.c | 5 ++++- > fs/jffs2/jffs2_private.h | 1 + > 2 files changed, 5 insertions(+), 1 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Power is danger. -- The Centurion, "Balance of Terror", stardate 1709.2