summaryrefslogtreecommitdiffstats
path: root/fs/buffer.c
diff options
context:
space:
mode:
authorMatt Mackall <mpm@selenic.com>2005-05-01 17:59:01 +0200
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-01 17:59:01 +0200
commitcd7619d6bf36564cf54ff7218ef54e558a741913 (patch)
treec11674169b6d8f0b498e7ebe8a85d624cca82502 /fs/buffer.c
parent[PATCH] remove all kernel BUGs (diff)
downloadlinux-cd7619d6bf36564cf54ff7218ef54e558a741913.tar.xz
linux-cd7619d6bf36564cf54ff7218ef54e558a741913.zip
[PATCH] Exterminate PAGE_BUG
Remove PAGE_BUG - repalce it with BUG and BUG_ON. Signed-off-by: Matt Mackall <mpm@selenic.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/buffer.c')
-rw-r--r--fs/buffer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/buffer.c b/fs/buffer.c
index 188365c79204..792cbacbbf41 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -2078,8 +2078,7 @@ int block_read_full_page(struct page *page, get_block_t *get_block)
int nr, i;
int fully_mapped = 1;
- if (!PageLocked(page))
- PAGE_BUG(page);
+ BUG_ON(!PageLocked(page));
blocksize = 1 << inode->i_blkbits;
if (!page_has_buffers(page))
create_empty_buffers(page, blocksize, 0);