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-8837 lustre: make uapi...lustre_disk.h unnecessary on client
[fs/lustre-release.git]
/
lustre
/
mgc
/
mgc_internal.h
diff --git
a/lustre/mgc/mgc_internal.h
b/lustre/mgc/mgc_internal.h
index
2289972
..
8429a32
100644
(file)
--- a/
lustre/mgc/mgc_internal.h
+++ b/
lustre/mgc/mgc_internal.h
@@
-63,12
+63,20
@@
static inline bool cld_is_recover(struct config_llog_data *cld)
static inline bool cld_is_nodemap(struct config_llog_data *cld)
{
static inline bool cld_is_nodemap(struct config_llog_data *cld)
{
+#ifdef HAVE_SERVER_SUPPORT
return cld->cld_type == MGS_CFG_T_NODEMAP;
return cld->cld_type == MGS_CFG_T_NODEMAP;
+#else
+ return false;
+#endif
}
static inline bool cld_is_barrier(struct config_llog_data *cld)
{
}
static inline bool cld_is_barrier(struct config_llog_data *cld)
{
+#ifdef HAVE_SERVER_SUPPORT
return cld->cld_type == MGS_CFG_T_BARRIER;
return cld->cld_type == MGS_CFG_T_BARRIER;
+#else
+ return false;
+#endif
}
#endif /* _MGC_INTERNAL_H */
}
#endif /* _MGC_INTERNAL_H */