jfs: Remove check for PageUptodate
Pages returned from read_mapping_page() are always uptodate, so this check is unnecessary. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
This commit is contained in:
parent
da028b6b64
commit
3b60d53df0
@ -618,7 +618,7 @@ struct metapage *__get_metapage(struct inode *inode, unsigned long lblock,
|
|||||||
SetPageUptodate(page);
|
SetPageUptodate(page);
|
||||||
} else {
|
} else {
|
||||||
page = read_mapping_page(mapping, page_index, NULL);
|
page = read_mapping_page(mapping, page_index, NULL);
|
||||||
if (IS_ERR(page) || !PageUptodate(page)) {
|
if (IS_ERR(page)) {
|
||||||
jfs_err("read_mapping_page failed!");
|
jfs_err("read_mapping_page failed!");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user