diff --git a/lustre/llite/dir.c b/lustre/llite/dir.c index a2d3d4b4f9..b2227aff6f 100644 --- a/lustre/llite/dir.c +++ b/lustre/llite/dir.c @@ -171,7 +171,7 @@ void ll_release_page(struct inode *inode, struct page *page, if (remove) { lock_page(page); if (likely(page->mapping != NULL)) - truncate_complete_page(page->mapping, page); + delete_from_page_cache(page); unlock_page(page); } put_page(page); diff --git a/lustre/mdc/mdc_request.c b/lustre/mdc/mdc_request.c index a432422a4d..47bf7ec85f 100644 --- a/lustre/mdc/mdc_request.c +++ b/lustre/mdc/mdc_request.c @@ -1116,7 +1116,7 @@ static void mdc_release_page(struct page *page, int remove) if (remove) { lock_page(page); if (likely(page->mapping != NULL)) - truncate_complete_page(page->mapping, page); + delete_from_page_cache(page); unlock_page(page); } put_page(page);