[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>
Showing
- fs/jffs2/erase.c 5 additions, 13 deletionsfs/jffs2/erase.c
- fs/jffs2/nodelist.c 34 additions, 0 deletionsfs/jffs2/nodelist.c
- fs/jffs2/nodelist.h 2 additions, 0 deletionsfs/jffs2/nodelist.h
- fs/jffs2/nodemgmt.c 1 addition, 15 deletionsfs/jffs2/nodemgmt.c
- fs/jffs2/scan.c 11 additions, 38 deletionsfs/jffs2/scan.c
- fs/jffs2/summary.c 15 additions, 56 deletionsfs/jffs2/summary.c
Loading
Please register or sign in to comment