]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs/ubifs: use rbtree postorder iteration helper instead of opencoding
authorCody P Schafer <cody@linux.vnet.ibm.com>
Fri, 3 Jan 2014 03:10:33 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:33 +0000 (14:10 +1100)
commit23fcd3a59686cb2386273b1aa4eac0db987fc0cc
tree4fd3f8aff853076587adaf7073a51a3c1719b3d0
parent682924cf4fce2355226f260f9eefa43fe46edcc7
fs/ubifs: 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: Artem Bityutskiy <dedekind1@gmail.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ubifs/debug.c
fs/ubifs/log.c
fs/ubifs/orphan.c
fs/ubifs/recovery.c
fs/ubifs/super.c
fs/ubifs/tnc.c