]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
btrfs: use macro accessors in superblock validation checks
authorDavid Sterba <dsterba@suse.cz>
Mon, 27 Oct 2014 12:52:21 +0000 (13:52 +0100)
committerChris Mason <clm@fb.com>
Mon, 27 Oct 2014 20:16:52 +0000 (13:16 -0700)
commit21e7626b12f25770e2975bc7c7b2e1d5b1d58a57
treeffef7ad5af46ccba495eac6a21b86f582d46e6d6
parentd37973082b453ba6b89ec07eb7b84305895d35e1
btrfs: use macro accessors in superblock validation checks

The initial patch c926093ec516f5d316 (btrfs: add more superblock checks)
did not properly use the macro accessors that wrap endianness and the
code would not work correctly on big endian machines.

Reported-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/disk-io.c