Umount & quotas

From: Jan Kara (jack@suse.cz)
Date: Tue Nov 28 2000 - 07:02:51 EST


  Hello.

  After rewrite on umount code automagical turning of
quotas off stopped working - filesystem was considered
busy.
  I would restore the behaviour in 2.4 and probably
in 2.5 move this to userland together with other quota
changes...
  Following patch (written by Al Viro) should restore
the behaviour.

                                        Honza

--- fs/super.c Thu Nov 2 22:38:59 2000
+++ fs/super.c Tue Nov 21 11:36:05 2000
@@ -1037,13 +1037,13 @@
        }

        spin_lock(&dcache_lock);
- if (atomic_read(&mnt->mnt_count) > 2) {
- spin_unlock(&dcache_lock);
- mntput(mnt);
- return -EBUSY;
- }

        if (mnt->mnt_instances.next != mnt->mnt_instances.prev) {
+ if (atomic_read(&mnt->mnt_count) > 2) {
+ spin_unlock(&dcache_lock);
+ mntput(mnt);
+ return -EBUSY;
+ }
                if (sb->s_type->fs_flags & FS_SINGLE)
                        put_filesystem(sb->s_type);
                /* We hold two references, so mntput() is safe */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 30 2000 - 21:00:19 EST