]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] relax check of page/bh state on I/O error
authorAndrew Morton <akpm@osdl.org>
Tue, 30 Dec 2003 07:44:42 +0000 (23:44 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 30 Dec 2003 07:44:42 +0000 (23:44 -0800)
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.

fs/buffer.c

index 5247132a081b9fcf018648b2d717ce464419fa08..e186204bf253ac53411337d93675dc5bcf4bd965 100644 (file)
@@ -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 {