summaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/dir.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-05-18 00:12:25 +0200
committerMatthew Wilcox (Oracle) <willy@infradead.org>2022-06-29 14:51:07 +0200
commit79ea65563ad8aaab309d61eeb4d5019dd6cf5fa0 (patch)
tree0fbb82dce3c443eee82d2fa5778d74ca8dd84fa7 /fs/nilfs2/dir.c
parentext2: Remove check for PageError (diff)
downloadlinux-79ea65563ad8aaab309d61eeb4d5019dd6cf5fa0.tar.xz
linux-79ea65563ad8aaab309d61eeb4d5019dd6cf5fa0.zip
nilfs2: Remove check for PageError
If read_mapping_page() encounters an error, it returns an errno, not a page with PageError set, so this test is not needed. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Diffstat (limited to 'fs/nilfs2/dir.c')
-rw-r--r--fs/nilfs2/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nilfs2/dir.c b/fs/nilfs2/dir.c
index f8f4c2ff52f4..decd6471300b 100644
--- a/fs/nilfs2/dir.c
+++ b/fs/nilfs2/dir.c
@@ -194,7 +194,7 @@ static struct page *nilfs_get_page(struct inode *dir, unsigned long n)
if (!IS_ERR(page)) {
kmap(page);
if (unlikely(!PageChecked(page))) {
- if (PageError(page) || !nilfs_check_page(page))
+ if (!nilfs_check_page(page))
goto fail;
}
}