Skip to contentSkip to conversation

Fat64 / exFat fs and Linux

DISCUSSION Tobias Karnat 1 participant 1 message Feb 27, 2011

lore
Share & tools
lore
#0 lore raw

Hi,

this patch makes the exFAT driver compatible with Linux 2.6.36.

-Tobias

exfat/exfat.h 2010-11-23 16:16:28.000000000 +0100 renamed from exfat/exfat.h 2009-02-08 00:21:25.000000000 +0100 +1 -0
diff -urN a/exfat/exfat.h b/exfat/exfat.h
@@ -8,6 +8,7 @@
 
 #include <linux/fs.h>
 #include <linux/nls.h>
+#include <linux/slab.h>
 #include "exfat_fs.h"
 
 /* FIXME: remove this */
exfat/super.c 2010-12-08 13:41:51.000000000 +0100 renamed from exfat/super.c 2009-02-08 00:20:52.000000000 +0100 +5 -3
diff -urN a/exfat/super.c b/exfat/super.c
@@ -58,8 +58,11 @@
        kmem_cache_free(exfat_inode_cachep, EXFAT_I(inode));
 }
 
-static void exfat_clear_inode(struct inode *inode)
+static void exfat_evict_inode(struct inode *inode)
 {
+       truncate_inode_pages(&inode->i_data, 0);
+       invalidate_inode_buffers(inode);
+       end_writeback(inode);
        exfat_cache_inval(inode);
        exfat_detach(inode);
 }
@@ -268,8 +271,7 @@
        .alloc_inode    = exfat_alloc_inode,
        .destroy_inode  = exfat_destroy_inode,
 //     .write_inode    = ext4_write_inode,
-//     .delete_inode   = ext4_delete_inode,
-       .clear_inode    = exfat_clear_inode,
+       .evict_inode    = exfat_evict_inode,
        .put_super      = exfat_put_super,
 //     .write_super    = ext4_write_super,
        .statfs         = exfat_statfs,