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

Top Page
Attachments:
Message as email
+ (text/plain)
+ yaffs_kernel_07_kill_sb.patch (text/plain)
Delete this message
Reply to this message
Author: Frank Rowand
Date:  
To: yaffs
CC: frowand
Subject: [Yaffs] yaffs on Linux 2.6.9 - patch 7 of 7
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