[Yaffs] [PATCH]
Luc Van Oostenryck
lkml at looxix.net
Tue Jul 19 01:34:22 BST 2005
PAGE_BUG() doesn't exist in Linux-2.6; use directly BUG_ON().
-------------- next part --------------
diff --git a/fs/yaffs2/yaffs_fs.c b/fs/yaffs2/yaffs_fs.c
--- a/fs/yaffs2/yaffs_fs.c
+++ b/fs/yaffs2/yaffs_fs.c
@@ -463,8 +463,7 @@ static int yaffs_readpage_nolock(struct
dev = obj->myDev;
- if (!PageLocked(pg))
- PAGE_BUG(pg);
+ BUG_ON(!PageLocked(pg));
pg_buf = kmap(pg);
/* FIXME: Can kmap fail? */
More information about the yaffs
mailing list