diff mbox

[1/2] btrfs-progs: clean up unnecessary headers and move radix_tree_init()

Message ID 1455195716-16282-1-git-send-email-fougner89@gmail.com (mailing list archive)
State Accepted
Headers show

Commit Message

Alexander Fougner Feb. 11, 2016, 1:01 p.m. UTC
Signed-off-by: Alexander Fougner <fougner89@gmail.com>
---
 btrfs-debug-tree.c       | 13 ++-----------
 cmds-inspect-dump-tree.c |  2 --
 2 files changed, 2 insertions(+), 13 deletions(-)

Comments

David Sterba Feb. 11, 2016, 5:27 p.m. UTC | #1
On Thu, Feb 11, 2016 at 02:01:55PM +0100, Alexander Fougner wrote:
> Signed-off-by: Alexander Fougner <fougner89@gmail.com>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/btrfs-debug-tree.c b/btrfs-debug-tree.c
index 057a715..d6e5a69 100644
--- a/btrfs-debug-tree.c
+++ b/btrfs-debug-tree.c
@@ -16,18 +16,7 @@ 
  * Boston, MA 021110-1307, USA.
  */
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <uuid/uuid.h>
-#include <getopt.h>
-
-#include "kerncompat.h"
-#include "radix-tree.h"
-#include "ctree.h"
 #include "disk-io.h"
-#include "print-tree.h"
-#include "transaction.h"
 #include "volumes.h"
 #include "utils.h"
 #include "commands.h"
@@ -42,6 +31,8 @@  int main(int ac, char **av)
 	if (ac > 1 && !strcmp(av[1], "--help"))
 		usage(cmd_inspect_dump_tree_usage);
 
+	radix_tree_init();
+
 	ret = cmd_inspect_dump_tree(ac, av);
 
 	btrfs_close_all_devices();
diff --git a/cmds-inspect-dump-tree.c b/cmds-inspect-dump-tree.c
index 8a3cf0b..0dab506 100644
--- a/cmds-inspect-dump-tree.c
+++ b/cmds-inspect-dump-tree.c
@@ -128,8 +128,6 @@  int cmd_inspect_dump_tree(int ac, char **av)
 	struct btrfs_root *tree_root_scan;
 	u64 tree_id = 0;
 
-	radix_tree_init();
-
 	while (1) {
 		int c;
 		static const struct option long_options[] = {