ceph: fix bogus endianness change in ceph_ioctl_set_layout
authorJeff Layton <jlayton@redhat.com>
Thu, 12 Jan 2017 19:42:40 +0000 (14:42 -0500)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 20 Feb 2017 11:16:07 +0000 (12:16 +0100)
commit24c149ad6914d349d8b64749f20f3f8ea5031fe0
tree5d645524edccded2a08a6959e55e3deba1606c97
parent7fea24c6d4a553c59937ae4fef95c730a88125cb
ceph: fix bogus endianness change in ceph_ioctl_set_layout

sparse says:

    fs/ceph/ioctl.c:100:28: warning: cast to restricted __le64

preferred_osd is a __s64 so we don't need to do any conversion. Also,
just remove the cast in ceph_ioctl_get_layout as it's not needed.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/ioctl.c