]> git.kernelconcepts.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>
Wed, 15 Jan 2014 05:55:55 +0000 (16:55 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 15 Jan 2014 05:55:55 +0000 (16:55 +1100)
commita7dd7ca6a0430d1248f53887db335b3bc16dc9ce
tree78a6b0c27980b064cc4d1cb6bbc46a137822f8ae
parent6a164e6548ed774b3e72ea0f123fe48e095256c8
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