diff options
| author | Andrew Morton <akpm@osdl.org> | 2003-12-29 23:44:42 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-12-29 23:44:42 -0800 |
| commit | e8640dfabe3ed889e16f6861a217c6ebe6710880 (patch) | |
| tree | 513fff47145f8c1b47b8268abe25381fd5bd73e1 /fs/buffer.c | |
| parent | f9a7b4adf54e44cf6859c1860283253fa7a098ac (diff) | |
[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.
Diffstat (limited to 'fs/buffer.c')
| -rw-r--r-- | fs/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/buffer.c b/fs/buffer.c index 5247132a081b..e186204bf253 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -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 { |
