aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ufs/dir.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-05-17 18:12:25 -0400
committerMatthew Wilcox (Oracle) <willy@infradead.org>2022-06-29 08:51:07 -0400
commit771075e15e39b30abcf38186592383f38d06a40f (patch)
treef41448d4fb9c387c2cdd747f4ec20c289da1cd92 /fs/ufs/dir.c
parentreiserfs: Remove check for PageError (diff)
downloadlinux-dev-771075e15e39b30abcf38186592383f38d06a40f.tar.xz
linux-dev-771075e15e39b30abcf38186592383f38d06a40f.zip
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/dir.c')
-rw-r--r--fs/ufs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ufs/dir.c b/fs/ufs/dir.c
index b721d0bda5e5..391efaf1d528 100644
--- a/fs/ufs/dir.c
+++ b/fs/ufs/dir.c
@@ -193,7 +193,7 @@ static struct page *ufs_get_page(struct inode *dir, unsigned long n)
if (!IS_ERR(page)) {
kmap(page);
if (unlikely(!PageChecked(page))) {
- if (PageError(page) || !ufs_check_page(page))
+ if (!ufs_check_page(page))
goto fail;
}
}