| Kernel v2.4.6 /fs/inode.c |
|---|
 2.4.6
 fs
 inode.c
diff -u --recursive --new-file v2.4.5/linux/fs/inode.c linux/fs/inode.c
--- v2.4.5/linux/fs/inode.c Tue May 22 09:35:42 2001
+++ linux/fs/inode.c Tue Jun 12 11:02:44 2001
@@ -1044,6 +1044,8 @@
inode->i_state|=I_FREEING;
inodes_stat.nr_inodes--;
spin_unlock(&inode_lock);
+ if (inode->i_data.nrpages)
+ truncate_inode_pages(&inode->i_data, 0);
clear_inode(inode);
}
}
@@ -1162,14 +1164,13 @@
void put_dquot_list(struct list_head *);
int remove_inode_dquot_ref(struct inode *, short, struct list_head *);
-void remove_dquot_ref(kdev_t dev, short type)
+void remove_dquot_ref(struct super_block *sb, short type)
{
- struct super_block *sb = get_super(dev);
struct inode *inode;
struct list_head *act_head;
LIST_HEAD(tofree_head);
- if (!sb || !sb->dq_op)
+ if (!sb->dq_op)
return; /* nothing to do */
/* We have to be protected against other CPUs */
|