Messages in this thread Patch in this message | | | Subject | Re: Fat64 / exFat fs and Linux | From | Tobias Karnat <> | Date | Sun, 27 Feb 2011 18:27:23 +0100 |
| |
Hi,
this patch makes the exFAT driver compatible with Linux 2.6.36.
-Tobias
diff -urN a/exfat/exfat.h b/exfat/exfat.h --- a/exfat/exfat.h 2009-02-08 00:21:25.000000000 +0100 +++ b/exfat/exfat.h 2010-11-23 16:16:28.000000000 +0100 @@ -8,6 +8,7 @@ #include <linux/fs.h> #include <linux/nls.h> +#include <linux/slab.h> #include "exfat_fs.h" /* FIXME: remove this */ diff -urN a/exfat/super.c b/exfat/super.c --- a/exfat/super.c 2009-02-08 00:20:52.000000000 +0100 +++ b/exfat/super.c 2010-12-08 13:41:51.000000000 +0100 @@ -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,
| |