]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/staging/lustre/lustre/include/linux/lustre_patchless_compat.h
staging/lustre: fix for invalidatepage() API change
[karo-tx-linux.git] / drivers / staging / lustre / lustre / include / linux / lustre_patchless_compat.h
index a8e9c0c8ffd235d0965ef2cf1cd76cdd0bb8801e..a260e99a4447ee8b45e6c0f33c9ef18712c41220 100644 (file)
@@ -53,7 +53,7 @@ truncate_complete_page(struct address_space *mapping, struct page *page)
                return;
 
        if (PagePrivate(page))
-               page->mapping->a_ops->invalidatepage(page, 0);
+               page->mapping->a_ops->invalidatepage(page, 0, PAGE_CACHE_SIZE);
 
        cancel_dirty_page(page, PAGE_SIZE);
        ClearPageMappedToDisk(page);