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)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 13 Apr 2012 15:54:32 +0000 (11:54 -0400)
commit6ed3cf2cdfce4c9f1d73171bd3f27d9cb77b734e
tree482cf2252206cb23267fc64823e224c294165c15
parentaf1584f570b19b0285e4402a0b54731495d31784
btrfs: btrfs_root_readonly() broken on big-endian

->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>
fs/btrfs/ctree.h