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 --- disk-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'disk-io.c') diff --git a/disk-io.c b/disk-io.c index dc84a468..7eda2e12 100644 --- a/disk-io.c +++ b/disk-io.c @@ -1108,7 +1108,7 @@ static struct btrfs_fs_info *__open_ctree_fd(int fp, const char *path, eb = fs_info->chunk_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); ret = btrfs_setup_all_roots(fs_info, root_tree_bytenr, flags); -- cgit v1.2.3