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:
Matthew Wilcox (Oracle) 2022-05-17 23:32:34 -04:00
parent da028b6b64
commit 3b60d53df0
1 changed files with 1 additions and 1 deletions

View File

@ -618,7 +618,7 @@ struct metapage *__get_metapage(struct inode *inode, unsigned long lblock,
SetPageUptodate(page);
} else {
page = read_mapping_page(mapping, page_index, NULL);
if (IS_ERR(page) || !PageUptodate(page)) {
if (IS_ERR(page)) {
jfs_err("read_mapping_page failed!");
return NULL;
}