mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
[PATCH] hfs: don't reference missing page
If there was a read error, the bnode might miss some pages, so skip them. Signed-off-by: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
f76d28d235
commit
74f9c9c258
2 changed files with 4 additions and 0 deletions
|
@ -480,6 +480,8 @@ void hfs_bnode_put(struct hfs_bnode *node)
|
|||
return;
|
||||
}
|
||||
for (i = 0; i < tree->pages_per_bnode; i++) {
|
||||
if (!node->page[i])
|
||||
continue;
|
||||
mark_page_accessed(node->page[i]);
|
||||
#if REF_PAGES
|
||||
put_page(node->page[i]);
|
||||
|
|
|
@ -643,6 +643,8 @@ void hfs_bnode_put(struct hfs_bnode *node)
|
|||
return;
|
||||
}
|
||||
for (i = 0; i < tree->pages_per_bnode; i++) {
|
||||
if (!node->page[i])
|
||||
continue;
|
||||
mark_page_accessed(node->page[i]);
|
||||
#if REF_PAGES
|
||||
put_page(node->page[i]);
|
||||
|
|
Loading…
Reference in a new issue