]> git.baikalelectronics.ru Git - kernel.git/commitdiff
freevxfs: Remove check of PageError
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 17 May 2022 22:12:25 +0000 (18:12 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 29 Jun 2022 12:51:06 +0000 (08:51 -0400)
If read_mapping_page() encounters an error, it returns an errno, not a
page with PageError set, so this is dead code.

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

index 0e633d2bfc7de160bd75a33e82a237d1a0662f51..c99282df7761a0e3f9732f76e9f7e2fbcedf4336 100644 (file)
@@ -51,15 +51,9 @@ vxfs_get_page(struct address_space *mapping, u_long n)
                kmap(pp);
                /** if (!PageChecked(pp)) **/
                        /** vxfs_check_page(pp); **/
-               if (PageError(pp))
-                       goto fail;
        }
        
        return (pp);
-                
-fail:
-       vxfs_put_page(pp);
-       return ERR_PTR(-EIO);
 }
 
 /**