mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tobias Karnat <tobias.karnat@googlemail.com>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: Fat64 / exFat fs and Linux
Date: Sun, 27 Feb 2011 18:27:23 +0100	[thread overview]
Message-ID: <1298827643.14482.7.camel@Tobias-Karnat> (raw)

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,


             reply	other threads:[~2011-02-27 17:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-27 17:27 Tobias Karnat [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-12-11 21:59 Peter Paul
2009-01-29 21:52 A B
2009-01-29 22:26 ` OGAWA Hirofumi
2009-01-29 22:31   ` H. Peter Anvin
2009-01-29 22:42     ` OGAWA Hirofumi
2009-01-30  0:31     ` A B
2009-01-30  3:27       ` OGAWA Hirofumi
2009-01-31  3:45         ` OGAWA Hirofumi
2009-02-01 12:46           ` A B
2009-02-08  9:43             ` Alex Buell
     [not found]           ` <473359.26476.qm@web258,<20090208094333.490abcc1@lithium.local.net>
     [not found]             ` <SNT125-W20BE0DDA8ACAC2F1B4D240C3960@phx.gbl>
2009-12-01 22:12               ` Alex Buell
2009-01-28 11:06 A B
2009-01-29  7:09 ` OGAWA Hirofumi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1298827643.14482.7.camel@Tobias-Karnat \
    --to=tobias.karnat@googlemail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®