projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17bb554
)
ext2: Remove check for PageError
author
Matthew Wilcox (Oracle)
<willy@infradead.org>
Tue, 17 May 2022 22:12:25 +0000
(18:12 -0400)
committer
Matthew 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 test is not needed.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
fs/ext2/dir.c
patch
|
blob
|
history
diff --git
a/fs/ext2/dir.c
b/fs/ext2/dir.c
index
43de293
..
8326b63
100644
(file)
--- a/
fs/ext2/dir.c
+++ b/
fs/ext2/dir.c
@@
-204,8
+204,7
@@
static struct page * ext2_get_page(struct inode *dir, unsigned long n,
if (!IS_ERR(page)) {
*page_addr = kmap_local_page(page);
if (unlikely(!PageChecked(page))) {
- if (PageError(page) || !ext2_check_page(page, quiet,
- *page_addr))
+ if (!ext2_check_page(page, quiet, *page_addr))
goto fail;
}
}