forked from Minki/linux
ext2: Remove check for PageError
If read_mapping_page() encounters an error, it returns an errno, not a page with PageError set, so this test is not needed. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
This commit is contained in:
parent
17bb554879
commit
750cd7d0e6
@ -204,8 +204,7 @@ static struct page * ext2_get_page(struct inode *dir, unsigned long n,
|
||||
if (!IS_ERR(page)) {
|
||||
*page_addr = kmap_local_page(page);
|
||||
if (unlikely(!PageChecked(page))) {
|
||||
if (PageError(page) || !ext2_check_page(page, quiet,
|
||||
*page_addr))
|
||||
if (!ext2_check_page(page, quiet, *page_addr))
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user