summaryrefslogtreecommitdiff
path: root/fs/ufs/util.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-05-18 01:12:25 +0300
committerMatthew Wilcox (Oracle) <willy@infradead.org>2022-06-29 15:51:07 +0300
commit771075e15e39b30abcf38186592383f38d06a40f (patch)
treef41448d4fb9c387c2cdd747f4ec20c289da1cd92 /fs/ufs/util.c
parentb0c971e7b76887bfab44e6b891e90ebb4c637172 (diff)
downloadlinux-771075e15e39b30abcf38186592383f38d06a40f.tar.xz
ufs: Remove checks for PageError
If read_mapping_page() encounters an error, it returns an errno, not a page with PageError set, or a page that is not Uptodate, so this is dead code. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Diffstat (limited to 'fs/ufs/util.c')
-rw-r--r--fs/ufs/util.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/ufs/util.c b/fs/ufs/util.c
index 4fa633f84274..08ddf41eaaad 100644
--- a/fs/ufs/util.c
+++ b/fs/ufs/util.c
@@ -264,17 +264,6 @@ struct page *ufs_get_locked_page(struct address_space *mapping,
put_page(page);
return NULL;
}
-
- if (!PageUptodate(page) || PageError(page)) {
- unlock_page(page);
- put_page(page);
-
- printk(KERN_ERR "ufs_change_blocknr: "
- "can not read page: ino %lu, index: %lu\n",
- inode->i_ino, index);
-
- return ERR_PTR(-EIO);
- }
}
if (!page_has_buffers(page))
create_empty_buffers(page, 1 << inode->i_blkbits, 0);