From edfb76aff62a65de15669517882bb4a0945ffcf6 Mon Sep 17 00:00:00 2001 From: Anton Altaparmakov Date: Mon, 15 Jul 2002 05:57:51 +0100 Subject: Fix&improve debugging checks in async io completion handlers. Beffers marked for async io must be locked! --- fs/buffer.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'fs/buffer.c') diff --git a/fs/buffer.c b/fs/buffer.c index 3ff70e744ad3..27300f9a6ee0 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -519,8 +519,7 @@ static void end_buffer_async_read(struct buffer_head *bh, int uptodate) if (buffer_async_read(tmp)) { if (buffer_locked(tmp)) goto still_busy; - if (!buffer_mapped(bh)) - BUG(); + BUG(); } tmp = tmp->b_this_page; } while (tmp != bh); @@ -570,8 +569,7 @@ static void end_buffer_async_write(struct buffer_head *bh, int uptodate) if (buffer_async_write(tmp)) { if (buffer_locked(tmp)) goto still_busy; - if (!buffer_mapped(bh)) - BUG(); + BUG(); } tmp = tmp->b_this_page; } -- cgit v1.2.3