projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9ed489
)
hfsplus: 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/hfsplus/bnode.c
patch
|
blob
|
history
diff --git
a/fs/hfsplus/bnode.c
b/fs/hfsplus/bnode.c
index 177fae4e6581439bb7748ffdba99f91095da3bcc..a5ab00e5422030364c4aae4b229ac92928445dd9 100644
(file)
--- a/
fs/hfsplus/bnode.c
+++ b/
fs/hfsplus/bnode.c
@@
-447,10
+447,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;
}