]> git.baikalelectronics.ru Git - kernel.git/commit
[JFFS2] Reduce calls to ref_totlen() in jffs2_mark_node_obsolete()
authorDavid Woodhouse <dwmw2@infradead.org>
Sat, 20 May 2006 15:20:19 +0000 (16:20 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Sat, 20 May 2006 15:20:19 +0000 (16:20 +0100)
commitd4cb63c58c6fc595bcf7ac7685b9af82c1c0dfe2
tree07e58ced7665ec94dad951175795ed3cbf11513c
parent07340d73065268134a127f6757462f309b136bb5
[JFFS2] Reduce calls to ref_totlen() in jffs2_mark_node_obsolete()

We were calling ref_totlen() 18 times. Even before that becomes a real
function rather than just a dereference, apparently some compilers still
suck anyway. It'll _certainly_ suck after ref_totlen() becomes more
complicated, so calculate it once and don't rely on CSE.

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