}
#endif
+#ifndef HAVE_XA_IS_VALUE
+static inline bool xa_is_value(void *entry)
+{
+ return radix_tree_exceptional_entry(entry);
+}
+#endif
+
#ifndef HAVE_TRUNCATE_INODE_PAGES_FINAL
static inline void truncate_inode_pages_final(struct address_space *map)
{
#endif
#ifdef HAVE_PID_NS_FOR_CHILDREN
-# define ll_task_pid_ns(task) ((task)->nsproxy->pid_ns_for_children)
+# define ll_task_pid_ns(task) \
+ ((task)->nsproxy ? ((task)->nsproxy->pid_ns_for_children) : NULL)
#else
-# define ll_task_pid_ns(task) ((task)->nsproxy->pid_ns)
+# define ll_task_pid_ns(task) \
+ ((task)->nsproxy ? ((task)->nsproxy->pid_ns) : NULL)
#endif
#ifdef HAVE_FULL_NAME_HASH_3ARGS