[RFC:PATCH 03/07] Release tail when inode is freed

Dave Kleikamp
2007-08-29T20:53:44Z

Release tail when inode is freed

Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
---

fs/inode.c | 2 ++
1 file changed, 2 insertions(+)

diff -Nurp linux002/fs/inode.c linux003/fs/inode.c
--- linux002/fs/inode.c 2007-08-29 13:27:46.000000000 -0500
+++ linux003/fs/inode.c 2007-08-29 13:27:46.000000000 -0500
@@ -10,6 +10,7 @@
#include <linux/init.h>
#include <linux/quotaops.h>
#include <linux/slab.h>
+#include <linux/vm_file_tail.h>
#include <linux/writeback.h>
#include <linux/module.h>
#include <linux/backing-dev.h>
@@ -245,6 +246,7 @@ void __iget(struct inode * inode)
void clear_inode(struct inode *inode)
{
might_sleep();
+ vm_file_tail_free(inode->i_mapping);
invalidate_inode_buffers(inode);

BUG_ON(inode->i_data.nrpages);