]> git.hungrycats.org Git - linux/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)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Fri, 23 Jan 2015 13:15:34 +0000 (08:15 -0500)
commitf19c23cdb2d38282b7bf9b6438e7ee57dbda5310
tree2395e447e2dc293b83938574f297a1de1f9ba2cb
parent3093e174d49aa32c0fe28d69c38de1dd32c1330f
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>
(cherry picked from commit 21e7626b12f25770e2975bc7c7b2e1d5b1d58a57)
fs/btrfs/disk-io.c