]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs/ext3: 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)
commit1f6a11504d14380a62ac3874918b9cc29f74a9c0
tree56173018f0e2f5c946372b857297d13ce1eeb2aa
parentc20220cc2f47e8ac99587d476f1cdc4230b8b8d8
fs/ext3: 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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ext3/dir.c