[JFFS2] Reduce visibility of raw_node_ref to upper layers of JFFS2 code.
authorDavid Woodhouse <dwmw2@infradead.org>
Wed, 24 May 2006 01:04:45 +0000 (02:04 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Wed, 24 May 2006 01:04:45 +0000 (02:04 +0100)
As the first step towards eliminating the ref->next_phys member and saving
memory by using an _array_ of struct jffs2_raw_node_ref per eraseblock,
stop the write functions from allocating their own refs; have them just
_reserve_ the appropriate number instead. Then jffs2_link_node_ref() can
just fill them in.

Use a linked list of pre-allocated refs in the superblock, for now. Once
we switch to an array, it'll just be a case of extending that array.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
12 files changed:
fs/jffs2/erase.c
fs/jffs2/gc.c
fs/jffs2/jffs2_fs_sb.h
fs/jffs2/malloc.c
fs/jffs2/nodelist.c
fs/jffs2/nodelist.h
fs/jffs2/nodemgmt.c
fs/jffs2/scan.c
fs/jffs2/summary.c
fs/jffs2/wbuf.c
fs/jffs2/write.c
fs/jffs2/xattr.c

Simple merge
diff --cc fs/jffs2/gc.c
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc fs/jffs2/scan.c
Simple merge
Simple merge
diff --cc fs/jffs2/wbuf.c
Simple merge
Simple merge
Simple merge