diff options
| author | Anton Altaparmakov <aia21@cantab.net> | 2002-07-15 05:57:51 +0100 |
|---|---|---|
| committer | Anton Altaparmakov <aia21@cantab.net> | 2002-07-15 05:57:51 +0100 |
| commit | edfb76aff62a65de15669517882bb4a0945ffcf6 (patch) | |
| tree | 16003ace9c8562cffc25c3ece3b942ef895779d1 /fs | |
| parent | 484f2a9cd32ffe90aba220b8bae859fda1919f8f (diff) | |
Fix&improve debugging checks in async io completion handlers.
Beffers marked for async io must be locked!
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/buffer.c | 6 |
1 files changed, 2 insertions, 4 deletions
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; } |
