projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54c6260
)
hfs: 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 is dead code.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
fs/hfs/bnode.c
patch
|
blob
|
history
diff --git
a/fs/hfs/bnode.c
b/fs/hfs/bnode.c
index c0a73a6ffb28bd9c6201e3469f5e8314924ff336..c83fd0e8404d351ee5ada8abc8cde614a0c8c566 100644
(file)
--- a/
fs/hfs/bnode.c
+++ b/
fs/hfs/bnode.c
@@
-296,10
+296,6
@@
static struct hfs_bnode *__hfs_bnode_create(struct hfs_btree *tree, u32 cnid)
page = read_mapping_page(mapping, block++, NULL);
if (IS_ERR(page))
goto fail;
- if (PageError(page)) {
- put_page(page);
- goto fail;
- }
node->page[i] = page;
}