Whamcloud - gitweb
LU-7845 gss: support namespace in lgss_keyring
[fs/lustre-release.git] / lustre / include / lustre_compat.h
index 4229fa5..238e668 100644 (file)
@@ -413,4 +413,10 @@ static inline void truncate_inode_pages_final(struct address_space *map)
 #endif
 #endif
 
+#ifdef HAVE_PID_NS_FOR_CHILDREN
+# define ll_task_pid_ns(task)  ((task)->nsproxy->pid_ns_for_children)
+#else
+# define ll_task_pid_ns(task)  ((task)->nsproxy->pid_ns)
+#endif
+
 #endif /* _LUSTRE_COMPAT_H */