Skip to content

Commit 6fb5cf9

Browse files
Alexander Aringteigland
authored andcommitted
fs: dlm: public header in out utility
This patch allows to use header_out() and header_in() outside of dlm util functionality. Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
1 parent 8aa31cb commit 6fb5cf9

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

fs/dlm/util.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
#define DLM_ERRNO_ETIMEDOUT 110
2121
#define DLM_ERRNO_EINPROGRESS 115
2222

23-
static void header_out(struct dlm_header *hd)
23+
void header_out(struct dlm_header *hd)
2424
{
2525
hd->h_version = cpu_to_le32(hd->h_version);
2626
hd->h_lockspace = cpu_to_le32(hd->h_lockspace);
2727
hd->h_nodeid = cpu_to_le32(hd->h_nodeid);
2828
hd->h_length = cpu_to_le16(hd->h_length);
2929
}
3030

31-
static void header_in(struct dlm_header *hd)
31+
void header_in(struct dlm_header *hd)
3232
{
3333
hd->h_version = le32_to_cpu(hd->h_version);
3434
hd->h_lockspace = le32_to_cpu(hd->h_lockspace);

fs/dlm/util.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ void dlm_message_out(struct dlm_message *ms);
1515
void dlm_message_in(struct dlm_message *ms);
1616
void dlm_rcom_out(struct dlm_rcom *rc);
1717
void dlm_rcom_in(struct dlm_rcom *rc);
18+
void header_out(struct dlm_header *hd);
19+
void header_in(struct dlm_header *hd);
1820

1921
#endif
2022

0 commit comments

Comments
 (0)