]> git.baikalelectronics.ru Git - kernel.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)
commitd3457bf6f4225dbeb7e09cbfef2ad6c65803e473
treef1fb5992fbd299375c911eb4c36d7fc8774f9208
parent170cf10972999a4bbdb810c6be6b8d8ecb78d4e5
[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