Whamcloud - gitweb
LU-8560 llite: handle is_compat_task() rename
[fs/lustre-release.git] / lustre / include / lustre_patchless_compat.h
index cefa869..644ab78 100644 (file)
@@ -95,7 +95,7 @@ truncate_complete_page(struct address_space *mapping, struct page *page)
 
        if (PagePrivate(page))
 #ifdef HAVE_INVALIDATE_RANGE
-               page->mapping->a_ops->invalidatepage(page, 0, PAGE_CACHE_SIZE);
+               page->mapping->a_ops->invalidatepage(page, 0, PAGE_SIZE);
 #else
                page->mapping->a_ops->invalidatepage(page, 0);
 #endif
@@ -135,4 +135,8 @@ truncate_complete_page(struct address_space *mapping, struct page *page)
 #define ATTR_CTIME_SET (1 << 28)
 #endif
 
+#ifndef HAVE_IN_COMPAT_SYSCALL
+#define in_compat_syscall      is_compat_task
+#endif
+
 #endif /* LUSTRE_PATCHLESS_COMPAT_H */