Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-17662 osd-zfs: Support for ZFS 2.2.3
[fs/lustre-release.git]
/
lustre
/
obdclass
/
llog_swab.c
diff --git
a/lustre/obdclass/llog_swab.c
b/lustre/obdclass/llog_swab.c
index
1c9d0be
..
a532276
100644
(file)
--- a/
lustre/obdclass/llog_swab.c
+++ b/
lustre/obdclass/llog_swab.c
@@
-37,9
+37,17
@@
#define DEBUG_SUBSYSTEM S_LOG
#define DEBUG_SUBSYSTEM S_LOG
-
#include <lustre_log.h>
#include <lustre_update.h>
#include <lustre_log.h>
#include <lustre_update.h>
+#include <llog_swab.h>
+
+#ifdef HAVE_SERVER_SUPPORT
+#define SERVER_ONLY_EXPORT_SYMBOL(symbol) EXPORT_SYMBOL(symbol)
+#define SERVER_ONLY
+#else
+#define SERVER_ONLY static
+#define SERVER_ONLY_EXPORT_SYMBOL(symbol)
+#endif
static void print_llogd_body(struct llogd_body *d)
{
static void print_llogd_body(struct llogd_body *d)
{
@@
-123,7
+131,8
@@
void lustre_swab_lu_seq_range(struct lu_seq_range *range)
}
EXPORT_SYMBOL(lustre_swab_lu_seq_range);
}
EXPORT_SYMBOL(lustre_swab_lu_seq_range);
-void lustre_swab_update_ops(struct update_ops *uops, unsigned int op_count)
+SERVER_ONLY void lustre_swab_update_ops(struct update_ops *uops,
+ unsigned int op_count)
{
unsigned int i;
unsigned int j;
{
unsigned int i;
unsigned int j;
@@
-136,7
+145,7
@@
void lustre_swab_update_ops(struct update_ops *uops, unsigned int op_count)
__swab16s(&uops->uops_op[i].uop_params_off[j]);
}
}
__swab16s(&uops->uops_op[i].uop_params_off[j]);
}
}
-EXPORT_SYMBOL(lustre_swab_update_ops);
+
SERVER_ONLY_
EXPORT_SYMBOL(lustre_swab_update_ops);
void lustre_swab_llog_rec(struct llog_rec_hdr *rec)
{
void lustre_swab_llog_rec(struct llog_rec_hdr *rec)
{