From 33ce9a82b89486efc85c938caac968f5ee0408e1 Mon Sep 17 00:00:00 2001 From: Ross Kirk Date: Tue, 1 Oct 2013 11:59:22 +0200 Subject: btrfs-progs: Make btrfs_header_fsid() return unsigned long Internally, btrfs_header_fsid() calculates an unsigned long, but casts it to a pointer, while all callers cast it to unsigned long again. Committed to btrfs as fba6aa75654394fccf2530041e9451414c28084f Fix line length issues and match changes to kernelspace 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 f0d70406..5f3f4847 100644 --- a/disk-io.c +++ b/disk-io.c @@ -50,7 +50,7 @@ static int check_tree_block(struct btrfs_root *root, struct extent_buffer *buf) fs_devices = root->fs_info->fs_devices; while (fs_devices) { if (!memcmp_extent_buffer(buf, fs_devices->fsid, - (unsigned long)btrfs_header_fsid(), + btrfs_header_fsid(), BTRFS_FSID_SIZE)) { ret = 0; break; -- cgit v1.2.3