#define LUSTRE_PATCHLESS_COMPAT_H
#include <linux/lustre_version.h>
-#ifndef LUSTRE_KERNEL_VERSION
#include <linux/fs.h>
#ifndef HAVE_TRUNCATE_COMPLETE_PAGE
ll_remove_from_page_cache(page);
page_cache_release(page); /* pagecache ref */
}
-#endif
+#endif /* HAVE_TRUNCATE_COMPLETE_PAGE */
+#if !defined(HAVE_D_REHASH_COND) && !defined(HAVE___D_REHASH)
/* megahack */
static inline void d_rehash_cond(struct dentry * entry, int lock)
{
}
#define __d_rehash(dentry, lock) d_rehash_cond(dentry, lock)
-
-#define LUSTRE_PATCHLESS
+#endif /* !HAVE_D_REHASH_COND && !HAVE___D_REHASH*/
#ifndef ATTR_FROM_OPEN
#define ATTR_FROM_OPEN 0
#define ATTR_RAW 0
#endif
-#endif /* LUSTRE_KERNEL_VERSION */
-
#endif