*** empty log message ***
[yaffs/.git] / yaffs_fs.c
index dc700987448cbbe974b66743cb7981d7c9771d99..d669793752559559e71b3083f781b01927ae5c93 100644 (file)
@@ -20,7 +20,7 @@
  *
  *
  * Acknowledgements:
- * * Luc van OostenRyck for O_APPEND patch.
+ * * Luc van OostenRyck for numerous patches.
  * * Nick Bane for patches marked NCB.
  * * Some code bodily lifted from JFFS2.
  */
@@ -774,7 +774,7 @@ static int yaffs_setattr(struct dentry *dentry, struct iattr *attr)
        struct inode *inode = dentry->d_inode;
        int error;
        
-       T((KERN_DEBUG"yaffs_setattr\n"));
+       T((KERN_DEBUG"yaffs_setattr of object %d\n",yaffs_InodeToObject(inode)->objectId));
        
        if((error = inode_change_ok(inode,attr)) == 0)
        {
@@ -831,6 +831,8 @@ static void yaffs_put_super(struct super_block *sb)
        {
                 dev->putSuperFunc(sb);
        }
+       yaffs_Deinitialise(dev);
+       kfree(dev);
 }
 
 
@@ -871,7 +873,7 @@ static struct super_block *yaffs_internal_read_super(int useRam, struct super_bl
 
        
 
-#if CONFIG_YAFFS_USE_CHUNK_SIZE
+#ifdef CONFIG_YAFFS_USE_CHUNK_SIZE
        sb->s_blocksize = YAFFS_BYTES_PER_CHUNK;
        sb->s_blocksize_bits = YAFFS_CHUNK_SIZE_SHIFT;
 #else
@@ -880,6 +882,11 @@ static struct super_block *yaffs_internal_read_super(int useRam, struct super_bl
 #endif
        T(("yaffs_read_super: %s block size %d\n", useRam ? "RAM" : "MTD",sb->s_blocksize));
 
+#ifdef CONFIG_YAFFS_DISABLE_WRITE_VERIFY
+       T(("yaffs: Write verification disabled. All guarantees null and void\n");
+#endif
+
+
        
        if(useRam)
        {
@@ -1070,7 +1077,7 @@ static int __init init_yaffs_fs(void)
        int error = 0;
        
        printk(KERN_DEBUG "yaffs " __DATE__ " " __TIME__ " Initialisation\n");
-#if CONFIG_YAFFS_USE_GENERIC_RW
+#ifdef CONFIG_YAFFS_USE_GENERIC_RW
        printk(KERN_DEBUG "yaffs is using generic read/write (caching)\n");
 #else
        printk(KERN_DEBUG "yaffs is using direct read/write (uncached)\n");