]> git.baikalelectronics.ru Git - kernel.git/commitdiff
jfs: Remove check for PageUptodate
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 18 May 2022 03:32:34 +0000 (23:32 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 29 Jun 2022 12:51:07 +0000 (08:51 -0400)
Pages returned from read_mapping_page() are always uptodate, so
this check is unnecessary.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
fs/jfs/jfs_metapage.c

index 387652ae14c21662a33cb965e254b3d3601e18c8..2e8461ce74de697df24518f27e7e4cd99fcdd665 100644 (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;
                }