Whamcloud - gitweb
LU-9580 tests: remove performance-sanity tests from ALWAYS_EXCEPT
[fs/lustre-release.git] / lustre / include / lustre_compat.h
index 8e2a9c6..ef60f3e 100644 (file)
@@ -620,4 +620,11 @@ static inline void __user *get_vmf_address(struct vm_fault *vmf)
 # define ll_filemap_fault(vma, vmf) filemap_fault(vma, vmf)
 #endif
 
+#ifndef HAVE_CURRENT_TIME
+static inline struct timespec current_time(struct inode *inode)
+{
+       return CURRENT_TIME;
+}
+#endif
+
 #endif /* _LUSTRE_COMPAT_H */