fs/ubifs: use rbtree postorder iteration helper instead of opencoding
authorCody P Schafer <cody@linux.vnet.ibm.com>
Thu, 23 Jan 2014 23:56:08 +0000 (15:56 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Jan 2014 00:37:03 +0000 (16:37 -0800)
commitbb25e49ff8ab0ef0b3c073c09d55cf10ef8a2aa0
tree0eb5d1ca02d4e9caccd9716e35d5baa448eb73c8
parentb182837ac111e87f8e82cbcb0046449d9412187f
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>
Signed-off-by: Linus Torvalds <torvalds@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