]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[JFFS2] Remove broken insert_point optimisation in jffs2_add_tn_to_tree()
authorDavid Woodhouse <dwmw2@infradead.org>
Sun, 6 May 2007 13:41:40 +0000 (14:41 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Sun, 6 May 2007 13:41:40 +0000 (14:41 +0100)
commit96dd8d25d1ca8c233bd47752349d27a631c18719
treee76be6a42fe3396d02762d78383aec10edd68456
parent1123e2a85941c7f506bd42c91c7e9ab74fc42d79
[JFFS2] Remove broken insert_point optimisation in jffs2_add_tn_to_tree()

The original code would remember, during the first pass over the tree,
a suitable place to start the insertion from when we eventually come
to add a new node.

The optimisation was broken, and we sometimes ended up inserting a new
node in the wrong place because we started the insertion from the wrong
point.

Just ditch the optimisation and start the insertion from the root of the
tree, for now. I'll try it again when I'm feeling cleverer.

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