[Yaffs] [PATCH] yaffsram need get_sb_nodev

Luc Van Oostenryck lkml at looxix.net
Tue Jul 19 01:55:15 BST 2005


yaffsram and yaffsram2 need to use get_sb_nodev() instead of get_sb_bdev()
and kill_litter_super() instead of kill_block_super().

See ramfs, for example.
-------------- 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
@@ -1699,7 +1699,7 @@ static DECLARE_FSTYPE(yaffs2_fs_type, "y
 static struct super_block *yaffs_ram_read_super(struct file_system_type * fs, int flags, const char *dev_name, void *data)
 {
 
-    return get_sb_bdev(fs, flags, dev_name, data, yaffs_internal_read_super_ram);
+    return get_sb_nodev(fs, flags, data, yaffs_internal_read_super_ram);
 }
 
 
@@ -1707,8 +1707,7 @@ static struct file_system_type yaffs_ram
 	.owner		= THIS_MODULE,
 	.name		= "yaffsram",
 	.get_sb		= yaffs_ram_read_super,
-	.kill_sb	= kill_block_super,
-//	.kill_sb	= kill_litter_super,
+	.kill_sb	= kill_litter_super,
 	.fs_flags	= 0 ,
 };
 #else
@@ -1728,7 +1727,7 @@ static DECLARE_FSTYPE(yaffs_ram_fs_type,
 static struct super_block *yaffs2_ram_read_super(struct file_system_type * fs, int flags, const char *dev_name, void *data)
 {
 
-    return get_sb_bdev(fs, flags, dev_name, data, yaffs2_internal_read_super_ram);
+    return get_sb_nodev(fs, flags, data, yaffs2_internal_read_super_ram);
 }
 
 
@@ -1736,8 +1735,7 @@ static struct file_system_type yaffs2_ra
 	.owner		= THIS_MODULE,
 	.name		= "yaffs2ram",
 	.get_sb		= yaffs2_ram_read_super,
-	.kill_sb	= kill_block_super,
-//	.kill_sb	= kill_litter_super,
+	.kill_sb	= kill_litter_super,
 	.fs_flags	= 0 ,
 };
 #else


More information about the yaffs mailing list