diff options
author | Matt Mackall <mpm@selenic.com> | 2005-05-01 08:59:01 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-01 08:59:01 -0700 |
commit | cd7619d6bf36564cf54ff7218ef54e558a741913 (patch) | |
tree | c11674169b6d8f0b498e7ebe8a85d624cca82502 /fs/jffs2 | |
parent | c8538a7aa5527d02c7191ac5da124efadf6a2827 (diff) | |
download | kernel_samsung_crespo-cd7619d6bf36564cf54ff7218ef54e558a741913.zip kernel_samsung_crespo-cd7619d6bf36564cf54ff7218ef54e558a741913.tar.gz kernel_samsung_crespo-cd7619d6bf36564cf54ff7218ef54e558a741913.tar.bz2 |
[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/jffs2')
-rw-r--r-- | fs/jffs2/file.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/jffs2/file.c b/fs/jffs2/file.c index 0c607c1..771a554 100644 --- a/fs/jffs2/file.c +++ b/fs/jffs2/file.c @@ -79,8 +79,7 @@ static int jffs2_do_readpage_nolock (struct inode *inode, struct page *pg) D2(printk(KERN_DEBUG "jffs2_do_readpage_nolock(): ino #%lu, page at offset 0x%lx\n", inode->i_ino, pg->index << PAGE_CACHE_SHIFT)); - if (!PageLocked(pg)) - PAGE_BUG(pg); + BUG_ON(!PageLocked(pg)); pg_buf = kmap(pg); /* FIXME: Can kmap fail? */ |