summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/root-tree.c
diff options
context:
space:
mode:
authorMark Fasheh2011-07-14 23:23:06 +0200
committerChris Mason2011-08-01 20:30:44 +0200
commitbf5f32ecb6caac52b4d1c083251b3dd4f40a0b7a (patch)
treea1022046dd66034c6a916b28abcadc9128184273 /fs/btrfs/root-tree.c
parentBtrfs: fix oops while writing data to SSD partitions (diff)
downloadkernel-qcow2-linux-bf5f32ecb6caac52b4d1c083251b3dd4f40a0b7a.tar.gz
kernel-qcow2-linux-bf5f32ecb6caac52b4d1c083251b3dd4f40a0b7a.tar.xz
kernel-qcow2-linux-bf5f32ecb6caac52b4d1c083251b3dd4f40a0b7a.zip
btrfs: make btrfs_set_root_node void
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>
Diffstat (limited to 'fs/btrfs/root-tree.c')
-rw-r--r--fs/btrfs/root-tree.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c
index ebe45443de06..f4099904565a 100644
--- a/fs/btrfs/root-tree.c
+++ b/fs/btrfs/root-tree.c
@@ -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;
}
/*