]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[JFFS2] Introduce jffs2_link_node_ref() function to reduce code duplication
authorDavid Woodhouse <dwmw2@infradead.org>
Sat, 20 May 2006 18:45:26 +0000 (19:45 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Sat, 20 May 2006 18:45:26 +0000 (19:45 +0100)
commitf1f9671bd8f7d2ac6a918bad806ab5bdc0daaf4e
treef1fb5992fbd299375c911eb4c36d7fc8774f9208
parent0cfc7da3ff4b39a3aac261ab3f6b1329e2485653
[JFFS2] Introduce jffs2_link_node_ref() function to reduce code duplication

The same sequence of code was repeated in many places, to add a new
struct jffs2_raw_node_ref to an eraseblock and adjust the space accounting
accordingly. Move it out-of-line.

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