]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs/jffs2: use rbtree postorder iteration helper instead of opencoding
authorCody P Schafer <cody@linux.vnet.ibm.com>
Fri, 3 Jan 2014 03:10:34 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:34 +0000 (14:10 +1100)
commitc20220cc2f47e8ac99587d476f1cdc4230b8b8d8
tree4c261a35147eb057b7936d95a41d84179126b334
parent3376f0d86bbbfaddc91b8e431ff9de30ce32d360
fs/jffs2: use rbtree postorder iteration helper instead of opencoding

Use rbtree_postorder_for_each_entry_safe() to destroy the rbtree instead
of opencoding an alternate postorder iteration that modifies the tree

Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
Cc: Michel Lespinasse <walken@google.com>
Cc: Jan Kara <jack@suse.cz>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/jffs2/nodelist.c
fs/jffs2/readinode.c