Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 025a55c8 authored by Al Viro's avatar Al Viro Committed by Greg Kroah-Hartman
Browse files

btrfs: btrfs_root_readonly() broken on big-endian


commit 6ed3cf2c 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: default avatarAl Viro <viro@zeniv.linux.org.uk>
Cc: Chris Mason <chris.mason@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5479e787
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment