diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-05-18 00:12:25 +0200 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-06-29 14:51:07 +0200 |
commit | 79ea65563ad8aaab309d61eeb4d5019dd6cf5fa0 (patch) | |
tree | 0fbb82dce3c443eee82d2fa5778d74ca8dd84fa7 /fs/nilfs2/dir.c | |
parent | ext2: Remove check for PageError (diff) | |
download | linux-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.c | 2 |
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; } } |