aboutsummaryrefslogtreecommitdiffstats
path: root/disk-io.c
diff options
context:
space:
mode:
authorRoss Kirk <ross.kirk@gmail.com>2013-10-02 13:28:27 +0100
committerChris Mason <clm@fb.com>2014-01-31 08:22:04 -0800
commit7ff512ce38a266756442ddca328090fe9b6781dc (patch)
tree2834e555523e45037322e4ff300e4562be4d6a43 /disk-io.c
parent1ecefced86538306d581b05105a93d1268ce0028 (diff)
downloadbtrfs-progs-7ff512ce38a266756442ddca328090fe9b6781dc.tar.gz
btrfs-progs-7ff512ce38a266756442ddca328090fe9b6781dc.tar.xz
btrfs-progs-7ff512ce38a266756442ddca328090fe9b6781dc.zip
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 <ross.kirk@gmail.com> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'disk-io.c')
-rw-r--r--disk-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-io.c b/disk-io.c
index dc84a46..7eda2e1 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);