Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24208
b: refs/heads/master
c: e827f92
h: refs/heads/master
v: v3
  • Loading branch information
Eric Sesterhenn authored and Adrian Bunk committed Mar 26, 2006
1 parent a2a9ef1 commit 4119dca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fddaaae16ba4d9f4d392a9ef94616d9d22485571
refs/heads/master: e827f92355e1eeec2d227d3bd3350d04042a011e
9 changes: 3 additions & 6 deletions trunk/fs/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -796,8 +796,7 @@ void mark_buffer_dirty_inode(struct buffer_head *bh, struct inode *inode)
if (!mapping->assoc_mapping) {
mapping->assoc_mapping = buffer_mapping;
} else {
if (mapping->assoc_mapping != buffer_mapping)
BUG();
BUG_ON(mapping->assoc_mapping != buffer_mapping);
}
if (list_empty(&bh->b_assoc_buffers)) {
spin_lock(&buffer_mapping->private_lock);
Expand Down Expand Up @@ -1114,8 +1113,7 @@ grow_dev_page(struct block_device *bdev, sector_t block,
if (!page)
return NULL;

if (!PageLocked(page))
BUG();
BUG_ON(!PageLocked(page));

if (page_has_buffers(page)) {
bh = page_buffers(page);
Expand Down Expand Up @@ -1522,8 +1520,7 @@ void set_bh_page(struct buffer_head *bh,
struct page *page, unsigned long offset)
{
bh->b_page = page;
if (offset >= PAGE_SIZE)
BUG();
BUG_ON(offset >= PAGE_SIZE);
if (PageHighMem(page))
/*
* This catches illegal uses and preserves the offset:
Expand Down

0 comments on commit 4119dca

Please sign in to comment.