From: Zach Brown Date: Wed, 20 Feb 2013 00:55:13 +0000 (+0000) Subject: btrfs: define BTRFS_MAGIC as a u64 value X-Git-Tag: v3.9-rc1~17^2~29^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdb4c5748cb3ac533889a6b0b95aa10651e68785;p=pandora-kernel.git btrfs: define BTRFS_MAGIC as a u64 value super.magic is an le64 but it's treated as an unterminated string when compared against BTRFS_MAGIC which is defined as a string. Instead define BTRFS_MAGIC as a normal hex value and use endian helpers to compare it to the super's magic. I tested this by mounting an fs made before the change and made sure that it didn't introduce sparse errors. This matches a similar cleanup that is pending in btrfs-progs. David Sterba pointed out that we should fix the kernel side as well :). Signed-off-by: Zach Brown Signed-off-by: Josef Bacik --- Reading git-diff-tree failed