btrfs: Add helper function for free_root_pointers()
authorRashika <rashika.kheria@gmail.com>
Wed, 30 Oct 2013 21:15:20 +0000 (02:45 +0530)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 03:11:13 +0000 (22:11 -0500)
commit2e9f5954978cd5b0c26e6eeb9fd4ccbdce0f5ecc
tree67114f60511afa3d1ceca92c42870208a5f4b059
parent48ec47364b6d493f0a9cdc116977bf3f34e5c3ec
btrfs: Add helper function for free_root_pointers()

The function free_root_pointers() in disk-io.h contains redundant code.
Therefore, this patch adds a helper function free_root_extent_buffers()
to free_root_pointers() to eliminate redundancy.

Reviewed-by: Zach Brown <zab@redhat.com>
Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/disk-io.c