mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
mm: do not access page->mapping directly on page_endio
am: c5c893e7c4
Change-Id: Ic37f4022408ccc77d7702ebc4be606bd94ad20e1
This commit is contained in:
@@ -865,9 +865,12 @@ void page_endio(struct page *page, int rw, int err)
|
||||
unlock_page(page);
|
||||
} else { /* rw == WRITE */
|
||||
if (err) {
|
||||
struct address_space *mapping;
|
||||
|
||||
SetPageError(page);
|
||||
if (page->mapping)
|
||||
mapping_set_error(page->mapping, err);
|
||||
mapping = page_mapping(page);
|
||||
if (mapping)
|
||||
mapping_set_error(mapping, err);
|
||||
}
|
||||
end_page_writeback(page);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user