Revert "btrfs: use proper endianness accessors for super_copy"
authorDavid Sterba <dsterba@suse.com>
Fri, 16 Mar 2018 13:31:43 +0000 (14:31 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 16 Mar 2018 13:49:44 +0000 (14:49 +0100)
commit093e037ca88e1767693bc6bcb2df3f49c6be68c7
treeb01d16292a8fc5581b7660f884f486d8ab26fabb
parent18bf591ba9753e3e5ba91f38f756a800693408f4
Revert "btrfs: use proper endianness accessors for super_copy"

This reverts commit 3c181c12c431fe33b669410d663beb9cceefcd1b.

The offending patch was merged in 4.16-rc4 and was promptly applied to
stable kernels 4.14.25 and 4.15.8.

The patch causes a corruption in several superblock items on big-endian
machines because of messed up endianity conversions. The damage is
manually repairable. A filesystem cannot be mounted again after it has
been unmounted once.

We do a full revert and not a fixup so stable can pick that patch ASAP.

Fixes: 3c181c12c431 ("btrfs: use proper endianness accessors for super_copy")
Link: https://lkml.kernel.org/r/1521139304@msgid.manchmal.in-ulm.de
CC: stable@vger.kernel.org # 4.14+
Reported-by: Christoph Biedl <linux-kernel.bfrz@manchmal.in-ulm.de>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/sysfs.c
fs/btrfs/transaction.c