]> git.baikalelectronics.ru Git - kernel.git/commit
[JFFS2] Finally eliminate __totlen field from struct jffs2_raw_node_ref
authorDavid Woodhouse <dwmw2@infradead.org>
Sun, 21 May 2006 12:29:11 +0000 (13:29 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Sun, 21 May 2006 12:29:11 +0000 (13:29 +0100)
commit3decdbc4a0708edb3134b18ed071f4b25a761001
treee277f31d6629c5dcc358adfa80190fc247d43f65
parent35da53107d0cc2ba68716dd1412e4c22a7300aea
[JFFS2] Finally eliminate __totlen field from struct jffs2_raw_node_ref

Well, almost. We'll actually keep a 'TEST_TOTLEN' macro set for now, and keep
doing some paranoia checks to make sure it's all working correctly. But if
TEST_TOTLEN is unset, the size of struct jffs2_raw_node_ref drops from 16
bytes to 12 on 32-bit machines. That's a saving of about half a megabyte of
memory on the OLPC prototype board, with 125K or so nodes in its 512MiB of
flash.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
fs/jffs2/nodelist.c
fs/jffs2/nodelist.h
fs/jffs2/nodemgmt.c