[Yaffs] yaffs on Linux 2.6.9 - patch 7 of 7

Frank Rowand frowand@mvista.com
Thu, 16 Dec 2004 17:36:54 -0800


This is a multi-part message in MIME format.
--------------030005090305020308040704
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit


--------------030005090305020308040704
Content-Type: text/plain;
 name="yaffs_kernel_07_kill_sb.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="yaffs_kernel_07_kill_sb.patch"

Index: linux-2.6.9/fs/yaffs/yaffs_fs.c
===================================================================
--- linux-2.6.9.orig/fs/yaffs/yaffs_fs.c
+++ linux-2.6.9/fs/yaffs/yaffs_fs.c
@@ -1557,8 +1557,10 @@
 	.owner		= THIS_MODULE,
 	.name		= "yaffs",
 	.get_sb		= yaffs_read_super,
-//	.kill_sb	= kill_block_super,
-	.kill_sb	= kill_litter_super,
+	.kill_sb	= kill_block_super,
+// using kill_litter_super() results in error on umount:
+//   VFS: Busy inodes after unmount. Self-destruct in 5 seconds.  Have a nice day...
+//	.kill_sb	= kill_litter_super,
 	.fs_flags	= FS_REQUIRES_DEV,
 };
 #else
@@ -1587,8 +1589,10 @@
 	.owner		= THIS_MODULE,
 	.name		= "yaffsram",
 	.get_sb		= yaffs_ram_read_super,
-//	.kill_sb	= kill_block_super,
-	.kill_sb	= kill_litter_super,
+	.kill_sb	= kill_block_super,
+// using kill_litter_super() results in error on umount:
+//   VFS: Busy inodes after unmount. Self-destruct in 5 seconds.  Have a nice day...
+//	.kill_sb	= kill_litter_super,
 #if (LINUX_VERSION_CODE <= KERNEL_VERSION(2,5,0))
 	.fs_flags	= FS_SINGLE,
 #endif

--------------030005090305020308040704--