summaryrefslogtreecommitdiff
path: root/fs/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/buffer.c')
-rw-r--r--fs/buffer.c6
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;
}