From: Alexander Aring <aahringo@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCHv2 dlm/next 06/17] fs: dlm: public header in out utility
Date: Tue, 1 Dec 2020 10:09:46 -0500 [thread overview]
Message-ID: <20201201150957.115068-7-aahringo@redhat.com> (raw)
In-Reply-To: <20201201150957.115068-1-aahringo@redhat.com>
This patch allows to use header_out() and header_in() outside of dlm
util functionality.
Signed-off-by: Alexander Aring <aahringo@redhat.com>
---
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
next prev parent reply other threads:[~2020-12-01 15:09 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-01 15:09 [Cluster-devel] [PATCHv2 dlm/next 00/17] fs: dlm: introduce dlm re-transmission layer Alexander Aring
2020-12-01 15:09 ` [Cluster-devel] [PATCHv2 dlm/next 01/17] fs: dlm: set connected bit after accept Alexander Aring
2020-12-01 15:09 ` [Cluster-devel] [PATCHv2 dlm/next 02/17] fs: dlm: set subclass for othercon sock_mutex Alexander Aring
2020-12-01 15:09 ` [Cluster-devel] [PATCHv2 dlm/next 03/17] fs: dlm: add errno handling to check callback Alexander Aring
2020-12-01 15:09 ` [Cluster-devel] [PATCHv2 dlm/next 04/17] fs: dlm: add check if dlm is currently running Alexander Aring
2020-12-01 15:09 ` [Cluster-devel] [PATCHv2 dlm/next 05/17] fs: dlm: change allocation limits Alexander Aring
2020-12-01 15:09 ` Alexander Aring [this message]
2020-12-01 15:09 ` [Cluster-devel] [PATCHv2 dlm/next 07/17] fs: dlm: use GFP_ZERO for page buffer Alexander Aring
2020-12-01 15:09 ` [Cluster-devel] [PATCHv2 dlm/next 08/17] fs: dlm: simplify writequeue handling Alexander Aring
2020-12-01 15:09 ` [Cluster-devel] [PATCHv2 dlm/next 09/17] fs: dlm: add more midcomms hooks Alexander Aring
2020-12-01 15:09 ` [Cluster-devel] [PATCHv2 dlm/next 10/17] fs: dlm: make buffer handling per msg Alexander Aring
2020-12-01 15:09 ` [Cluster-devel] [PATCHv2 dlm/next 11/17] fs: dlm: make new buffer handling softirq ready Alexander Aring
2020-12-01 15:09 ` [Cluster-devel] [PATCHv2 dlm/next 12/17] fs: dlm: add functionality to re-transmit a message Alexander Aring
2020-12-01 15:09 ` [Cluster-devel] [PATCHv2 dlm/next 13/17] fs: dlm: move out some hash functionality Alexander Aring
2020-12-01 15:09 ` [Cluster-devel] [PATCHv2 dlm/next 14/17] fs: dlm: remove unaligned memory access handling Alexander Aring
2020-12-01 15:09 ` [Cluster-devel] [PATCHv2 dlm/next 15/17] fs: dlm: add union in dlm header for lockspace id Alexander Aring
2020-12-01 15:09 ` [Cluster-devel] [PATCHv2 dlm/next 16/17] fs: dlm: add reliable connection if reconnect Alexander Aring
2020-12-01 15:09 ` [Cluster-devel] [PATCHv2 dlm/next 17/17] fs: dlm: don't allow half transmitted messages Alexander Aring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201201150957.115068-7-aahringo@redhat.com \
--to=aahringo@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).