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

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

Advertisement

Kernel v2.1.101 /fs/super.c

Filename:/fs/super.c
Lines Added:9
Lines Deleted:2
Also changed in: (Previous) 2.1.100  2.1.93  2.1.90  2.1.84  2.1.81  2.1.79 
(Following) 2.1.102  2.1.107  2.1.110  2.1.116  2.1.117  2.1.118 

Location
[  2.1.101
  [  fs
     o  super.c

Patch

diff -u --recursive --new-file v2.1.100/linux/fs/super.c linux/fs/super.c
--- v2.1.100/linux/fs/super.c   Thu May  7 22:51:54 1998
+++ linux/fs/super.c   Fri May  8 17:54:39 1998
@@ -32,6 +32,7 @@
 #include <linux/smp_lock.h>
 #include <linux/fd.h>
 #include <linux/init.h>
+#include <linux/quotaops.h>
 
 #include <asm/system.h>
 #include <asm/uaccess.h>
@@ -109,7 +110,9 @@
    lptr->mnt_sb = sb;
    lptr->mnt_dev = sb->s_dev;
    lptr->mnt_flags = sb->s_flags;
-   sema_init(&lptr->mnt_sem, 1);
+
+   sema_init(&lptr->mnt_dquot.semaphore, 1);
+   lptr->mnt_dquot.flags = 0;
 
    /* N.B. Is it really OK to have a vfsmount without names? */
    if (dev_name && !IS_ERR(tmp = getname(dev_name))) {
@@ -642,7 +645,11 @@
     * on the device. If the umount fails, too bad -- there
     * are no quotas running anymore. Just turn them on again.
     */
-   quota_off(dev, -1);
+   DQUOT_OFF(dev);
+
+#ifdef CONFIG_BSD_PROCESS_ACCT
+   (void) acct_auto_close(dev);
+#endif
 
    /*
     * Shrink dcache, then fsync. This guarantees that if the


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