aboutsummaryrefslogtreecommitdiffstats
path: root/fs/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/buffer.c')
-rw-r--r--fs/buffer.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/fs/buffer.c b/fs/buffer.c
index 3b3ab5281920..4342ab0ad99a 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -796,8 +796,7 @@ void mark_buffer_dirty_inode(struct buffer_head *bh, struct inode *inode)
796 if (!mapping->assoc_mapping) { 796 if (!mapping->assoc_mapping) {
797 mapping->assoc_mapping = buffer_mapping; 797 mapping->assoc_mapping = buffer_mapping;
798 } else { 798 } else {
799 if (mapping->assoc_mapping != buffer_mapping) 799 BUG_ON(mapping->assoc_mapping != buffer_mapping);
800 BUG();
801 } 800 }
802 if (list_empty(&bh->b_assoc_buffers)) { 801 if (list_empty(&bh->b_assoc_buffers)) {
803 spin_lock(&buffer_mapping->private_lock); 802 spin_lock(&buffer_mapping->private_lock);
@@ -1114,8 +1113,7 @@ grow_dev_page(struct block_device *bdev, sector_t block,
1114 if (!page) 1113 if (!page)
1115 return NULL; 1114 return NULL;
1116 1115
1117 if (!PageLocked(page)) 1116 BUG_ON(!PageLocked(page));
1118 BUG();
1119 1117
1120 if (page_has_buffers(page)) { 1118 if (page_has_buffers(page)) {
1121 bh = page_buffers(page); 1119 bh = page_buffers(page);
@@ -1522,8 +1520,7 @@ void set_bh_page(struct buffer_head *bh,
1522 struct page *page, unsigned long offset) 1520 struct page *page, unsigned long offset)
1523{ 1521{
1524 bh->b_page = page; 1522 bh->b_page = page;
1525 if (offset >= PAGE_SIZE) 1523 BUG_ON(offset >= PAGE_SIZE);
1526 BUG();
1527 if (PageHighMem(page)) 1524 if (PageHighMem(page))
1528 /* 1525 /*
1529 * This catches illegal uses and preserves the offset: 1526 * This catches illegal uses and preserves the offset: