From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Aring Date: Wed, 10 Mar 2021 14:17:38 -0500 Subject: [Cluster-devel] [PATCHv2 dlm/next 1/8] fs: dlm: public header in out utility In-Reply-To: <20210310191745.80824-1-aahringo@redhat.com> References: <20210310191745.80824-1-aahringo@redhat.com> Message-ID: <20210310191745.80824-2-aahringo@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit This patch allows to use header_out() and header_in() outside of dlm util functionality. Signed-off-by: Alexander Aring --- fs/dlm/util.c | 4 ++-- fs/dlm/util.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/dlm/util.c b/fs/dlm/util.c index cfd0d00b19ae..74a8c5bfe9b5 100644 --- a/fs/dlm/util.c +++ b/fs/dlm/util.c @@ -20,7 +20,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); @@ -28,7 +28,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 cc719ca9397e..d46f23c7a6a0 100644 --- a/fs/dlm/util.h +++ b/fs/dlm/util.h @@ -15,6 +15,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 -- 2.26.2