btrfs: btrfs_root_readonly() broken on big-endian
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 13 Apr 2012 15:49:04 +0000 (11:49 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 11 May 2012 12:14:13 +0000 (13:14 +0100)
commite8488d51a55aa5f87369e3ad9bda8969b0d4feb2
tree70eb3d7aa59d9664444135f01701b2be0eae1f6c
parent120aa796a02fbe93143bdb1fe2b1d313e41b85b1
btrfs: btrfs_root_readonly() broken on big-endian

commit 6ed3cf2cdfce4c9f1d73171bd3f27d9cb77b734e upstream.

->root_flags is __le64 and all accesses to it go through the helpers
that do proper conversions.  Except for btrfs_root_readonly(), which
checks bit 0 as in host-endian...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/btrfs/ctree.h