This is a note to let you know that I've just added the patch titled fs: dlm: public header in out utility to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: fs-dlm-public-header-in-out-utility.patch and it can be found in the queue-4.19 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. commit d75e83d4553e024af51f76454be634136b23e8b9 Author: Alexander Aring <aahringo@xxxxxxxxxx> Date: Fri May 21 15:08:40 2021 -0400 fs: dlm: public header in out utility [ Upstream commit 6fb5cf9d4206f2cdccb05be1bf2307dab4e5babe ] This patch allows to use header_out() and header_in() outside of dlm util functionality. Signed-off-by: Alexander Aring <aahringo@xxxxxxxxxx> Signed-off-by: David Teigland <teigland@xxxxxxxxxx> Stable-dep-of: aad633dc0cf9 ("fs: dlm: start midcomms before scand") Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx> diff --git a/fs/dlm/util.c b/fs/dlm/util.c index e36520af7cc0e..af9d9cbb8ff47 100644 --- a/fs/dlm/util.c +++ b/fs/dlm/util.c @@ -22,7 +22,7 @@ #define DLM_ERRNO_ETIMEDOUT 110 #define DLM_ERRNO_EINPROGRESS 115 -static void header_out(struct dlm_header *hd) +void header_out(struct dlm_header *hd) { hd->h_version = cpu_to_le32(hd->h_version); hd->h_lockspace = cpu_to_le32(hd->h_lockspace); @@ -30,7 +30,7 @@ static void header_out(struct dlm_header *hd) hd->h_length = cpu_to_le16(hd->h_length); } -static void header_in(struct dlm_header *hd) +void header_in(struct dlm_header *hd) { hd->h_version = le32_to_cpu(hd->h_version); hd->h_lockspace = le32_to_cpu(hd->h_lockspace); diff --git a/fs/dlm/util.h b/fs/dlm/util.h index 2b25915161c02..c805a916b29f5 100644 --- a/fs/dlm/util.h +++ b/fs/dlm/util.h @@ -17,6 +17,8 @@ void dlm_message_out(struct dlm_message *ms); void dlm_message_in(struct dlm_message *ms); void dlm_rcom_out(struct dlm_rcom *rc); void dlm_rcom_in(struct dlm_rcom *rc); +void header_out(struct dlm_header *hd); +void header_in(struct dlm_header *hd); #endif