summaryrefslogtreecommitdiffstats
path: root/fs/afs/file.c
diff options
context:
space:
mode:
authorMatt Mackall2005-05-01 17:59:01 +0200
committerLinus Torvalds2005-05-01 17:59:01 +0200
commitcd7619d6bf36564cf54ff7218ef54e558a741913 (patch)
treec11674169b6d8f0b498e7ebe8a85d624cca82502 /fs/afs/file.c
parent[PATCH] remove all kernel BUGs (diff)
downloadkernel-qcow2-linux-cd7619d6bf36564cf54ff7218ef54e558a741913.tar.gz
kernel-qcow2-linux-cd7619d6bf36564cf54ff7218ef54e558a741913.tar.xz
kernel-qcow2-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/afs/file.c')
-rw-r--r--fs/afs/file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/afs/file.c b/fs/afs/file.c
index 6b6bb7c8abf6..23c125128024 100644
--- a/fs/afs/file.c
+++ b/fs/afs/file.c
@@ -131,8 +131,7 @@ static int afs_file_readpage(struct file *file, struct page *page)
vnode = AFS_FS_I(inode);
- if (!PageLocked(page))
- PAGE_BUG(page);
+ BUG_ON(!PageLocked(page));
ret = -ESTALE;
if (vnode->flags & AFS_VNODE_DELETED)