[Yaffs] [PATCH]

Top Page
Attachments:
Message as email
+ (text/plain)
+ 07-fix-use-of-PAGE_BUG.diff (text/plain)
Delete this message
Reply to this message
Author: Luc Van Oostenryck
Date:  
To: yaffs
Subject: [Yaffs] [PATCH]
PAGE_BUG() doesn't exist in Linux-2.6; use directly BUG_ON().
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? */