From 7ff512ce38a266756442ddca328090fe9b6781dc Mon Sep 17 00:00:00 2001 From: Ross Kirk Date: Wed, 2 Oct 2013 13:28:27 +0100 Subject: btrfs-progs: Make btrfs_header_chunk_tree_uuid() return unsigned long Internally, btrfs_header_chunk_tree_uuid() calculates an unsigned long, but casts it to a pointer, while all callers cast it to unsigned long again. From btrfs commit b308bc2f05a86e728bd035e21a4974acd05f4d1e Signed-off-by: Ross Kirk Signed-off-by: David Sterba Signed-off-by: Chris Mason --- chunk-recover.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chunk-recover.c') diff --git a/chunk-recover.c b/chunk-recover.c index bcde39e..44e8b83 100644 --- a/chunk-recover.c +++ b/chunk-recover.c @@ -1047,7 +1047,7 @@ static int __rebuild_chunk_root(struct btrfs_trans_handle *trans, btrfs_header_fsid(), BTRFS_FSID_SIZE); write_extent_buffer(cow, root->fs_info->chunk_tree_uuid, - (unsigned long)btrfs_header_chunk_tree_uuid(cow), + btrfs_header_chunk_tree_uuid(cow), BTRFS_UUID_SIZE); root->node = cow; @@ -1235,7 +1235,7 @@ open_ctree_with_broken_chunk(struct recover_control *rc) eb = fs_info->tree_root->node; read_extent_buffer(eb, fs_info->chunk_tree_uuid, - (unsigned long)btrfs_header_chunk_tree_uuid(eb), + btrfs_header_chunk_tree_uuid(eb), BTRFS_UUID_SIZE); return fs_info->fs_root; -- cgit v1.2.1