Commit e8640dfa authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] relax check of page/bh state on I/O error

From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

Suppress a buffer_error() warning which occurs when a page which previously
had an I/O error gets its buffers stripped.
parent f9a7b4ad
......@@ -2823,7 +2823,7 @@ drop_buffers(struct page *page, struct buffer_head **buffers_to_free)
bh = bh->b_this_page;
} while (bh != head);
if (!was_uptodate && PageUptodate(page))
if (!was_uptodate && PageUptodate(page) && !PageError(page))
buffer_error();
do {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment