]> err.no Git - linux-2.6/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)
commitca89a517fa577e6f26621463d3aa4f3c3d530b1e
treee277f31d6629c5dcc358adfa80190fc247d43f65
parent010b06d6d07d9fa5ea6070aa72bb3e0de1761ab7
[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