X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Finclude%2Flustre_compat.h;h=3ebef7a2ab6a19902e133a01cae07c2fbaf6e6b1;hp=73562da1a3d066ae54d769d3756cb49442a4c803;hb=a0a3a29deb82656f9639f46847deac2689973893;hpb=acb6ee1f1fbeebad43a3d415bfcf47edd05c2aba diff --git a/lustre/include/lustre_compat.h b/lustre/include/lustre_compat.h index 73562da..3ebef7a 100644 --- a/lustre/include/lustre_compat.h +++ b/lustre/include/lustre_compat.h @@ -330,6 +330,13 @@ static inline int radix_tree_exceptional_entry(void *arg) } #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) {