dlm: use __le types for options header
authorAlexander Aring <aahringo@redhat.com>
Mon, 4 Apr 2022 20:06:38 +0000 (16:06 -0400)
committerDavid Teigland <teigland@redhat.com>
Wed, 6 Apr 2022 19:02:24 +0000 (14:02 -0500)
commitd9efd005fdd1d3f7ac2b9aaec025d58343d2ba45
tree755972aec6303d3c8801bfce1e55ed982e94fc2c
parenta8449f232ee316208185ef7fbedc4a2c48da2a34
dlm: use __le types for options header

This patch changes to use __le types directly in the dlm option headers
structures which are casted at the right dlm message buffer positions.

Currently only midcomms.c using those headers which already was calling
endian conversions on-the-fly without using in/out functionality like
other endianness handling in dlm. Using __le types now will hopefully get
useful warnings in future if we do comparison against host byte order
values.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/dlm_internal.h