Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.6 /fs/inode.c

Filename:/fs/inode.c
Lines Added:4
Lines Deleted:3
Also changed in: (Previous) 2.4.6-pre9  2.4.6-pre8  2.4.6-pre7  2.4.6-pre6  2.4.6-pre5  2.4.6-pre4 
(Following) 2.4.6-ac1  2.4.6-ac2  2.4.6-ac3  2.4.6-ac4  2.4.6-ac5  2.4.7-pre3 

Location
[  2.4.6
  [  fs
     o  inode.c

Patch

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 */


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.