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

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

Advertisement

Kernel v2.4.6 /fs/dquot.c

Filename:/fs/dquot.c
Lines Added:3
Lines Deleted:8
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-pre7 

Location
[  2.4.6
  [  fs
     o  dquot.c

Patch

diff -u --recursive --new-file v2.4.5/linux/fs/dquot.c linux/fs/dquot.c
--- v2.4.5/linux/fs/dquot.c   Sun May 20 11:32:11 2001
+++ linux/fs/dquot.c   Tue Jun 12 16:03:27 2001
@@ -325,7 +325,7 @@
         memset(&dquot->dq_dqb, 0, sizeof(struct dqblk));
 }
 
-void invalidate_dquots(kdev_t dev, short type)
+static void invalidate_dquots(kdev_t dev, short type)
 {
    struct dquot *dquot, *next;
    int need_restart;
@@ -651,8 +651,6 @@
 {
    int cnt;
 
-        if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode)))
-                return 0;
    if (is_quotafile(inode))
       return 0;
    if (type != -1)
@@ -1022,9 +1020,6 @@
    unsigned int id = 0;
    short cnt;
 
-   if (!S_ISREG(inode->i_mode) && !S_ISDIR(inode->i_mode) &&
-            !S_ISLNK(inode->i_mode))
-      return;
    lock_kernel();
    /* We don't want to have quotas on quota files - nasty deadlocks possible */
    if (is_quotafile(inode)) {
@@ -1388,7 +1383,7 @@
 }
 
 /* Function in inode.c - remove pointers to dquots in icache */
-extern void remove_dquot_ref(kdev_t, short);
+extern void remove_dquot_ref(struct super_block *, short);
 
 /*
  * Turn quota off on a device. type == -1 ==> quotaoff for all types (umount)
@@ -1413,7 +1408,7 @@
       reset_enable_flags(dqopt, cnt);
 
       /* Note: these are blocking operations */
-      remove_dquot_ref(sb->s_dev, cnt);
+      remove_dquot_ref(sb, cnt);
       invalidate_dquots(sb->s_dev, cnt);
 
       /* Wait for any pending IO - remove me as soon as invalidate is more polite */


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