]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
btrfs: make btrfs_set_root_node void
authorMark Fasheh <mfasheh@suse.com>
Thu, 14 Jul 2011 21:23:06 +0000 (21:23 +0000)
committerChris Mason <chris.mason@oracle.com>
Mon, 1 Aug 2011 18:30:44 +0000 (14:30 -0400)
This is fairly trivial - btrfs_set_root_node() - always returns zero so we
can just make it void.  All callers ignore the return code now anyway.  I
also made sure to check that none of the functions that
btrfs_set_root_node() calls returns an error that we might have needed to
catch and pass back.

Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.h
fs/btrfs/root-tree.c

index 7ac4d25fd4f81ec43a3d6fddb80570ede26fab58..34ce4140bb415784a8be76ae0ecd16b1fe08d728 100644 (file)
@@ -2406,8 +2406,8 @@ int btrfs_find_last_root(struct btrfs_root *root, u64 objectid, struct
                         btrfs_root_item *item, struct btrfs_key *key);
 int btrfs_find_dead_roots(struct btrfs_root *root, u64 objectid);
 int btrfs_find_orphan_roots(struct btrfs_root *tree_root);
-int btrfs_set_root_node(struct btrfs_root_item *item,
-                       struct extent_buffer *node);
+void btrfs_set_root_node(struct btrfs_root_item *item,
+                        struct extent_buffer *node);
 void btrfs_check_and_init_root_item(struct btrfs_root_item *item);
 
 /* dir-item.c */
index ebe45443de064471fba64ae4e176b2f7a1b66f93..f4099904565a508807f9c43458a1cdab6200cc24 100644 (file)
@@ -71,13 +71,12 @@ out:
        return ret;
 }
 
-int btrfs_set_root_node(struct btrfs_root_item *item,
-                       struct extent_buffer *node)
+void btrfs_set_root_node(struct btrfs_root_item *item,
+                        struct extent_buffer *node)
 {
        btrfs_set_root_bytenr(item, node->start);
        btrfs_set_root_level(item, btrfs_header_level(node));
        btrfs_set_root_generation(item, btrfs_header_generation(node));
-       return 0;
 }
 
 /*