diff --git a/mm/filemap.c b/mm/filemap.c index 84e7f3c7d667..9620696f880c 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -2348,8 +2348,6 @@ static int filemap_read_page(struct file *file, struct address_space *mapping, return error; if (PageUptodate(page)) return 0; - if (!page->mapping) /* page truncated */ - return AOP_TRUNCATED_PAGE; shrink_readahead_size_eio(&file->f_ra); return -EIO; }