]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs/ext4: 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)
commit3376f0d86bbbfaddc91b8e431ff9de30ce32d360
treef010bec483df5f595426e845366fe4c3e7325d23
parent23fcd3a59686cb2386273b1aa4eac0db987fc0cc
fs/ext4: 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>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: Michel Lespinasse <walken@google.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ext4/block_validity.c
fs/ext4/dir.c