ceph: fix endianness bug when handling MDS session feature bits
authorJeff Layton <jlayton@kernel.org>
Tue, 28 Apr 2020 12:10:22 +0000 (08:10 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 4 May 2020 17:14:23 +0000 (19:14 +0200)
commit0fa8263367db9287aa0632f96c1a5f93cc478150
treebfd933bcc580e9758079c88fa018ab7b03d32cad
parent0e698dfa282211e414076f9dc7e83c1c288314fd
ceph: fix endianness bug when handling MDS session feature bits

Eduard reported a problem mounting cephfs on s390 arch. The feature
mask sent by the MDS is little-endian, so we need to convert it
before storing and testing against it.

Cc: stable@vger.kernel.org
Reported-and-Tested-by: Eduard Shishkin <edward6@linux.ibm.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/mds_client.c