Whamcloud - gitweb
LU-549 llite: Improve statfs performance if selinux is disabled
[fs/lustre-release.git] / lustre / include / linux / lustre_compat25.h
index 0a97aa1..044b6e9 100644 (file)
@@ -858,5 +858,12 @@ static inline int ll_quota_off(struct super_block *sb, int off, int remount)
 # define TIMES_SET_FLAGS (ATTR_MTIME_SET | ATTR_ATIME_SET)
 #endif
 
+#ifndef HAVE_SELINUX_IS_ENABLED
+static inline bool selinux_is_enabled(void)
+{
+        return 0;
+}
+#endif
+
 #endif /* __KERNEL__ */
 #endif /* _COMPAT25_H */