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

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

Advertisement

Kernel v2.4.16 /fs/super.c

Filename:/fs/super.c
Lines Added:4
Lines Deleted:0
Also changed in: (Previous) 2.4.16-pre1  2.4.15-greased-turkey  2.4.15-pre9  2.4.14  2.4.14-pre8  2.4.14-pre7 
(Following) 2.4.17-rc2  2.4.17  2.4.18-pre5  2.4.18-pre6  2.4.18-pre7  2.4.18-pre8 

Location
[  2.4.16
  [  fs
     o  super.c

Patch

diff -Nur linux-2.4.15/fs/super.c linux/fs/super.c
--- linux-2.4.15/fs/super.c   Wed Nov 21 20:05:29 2001
+++ linux/fs/super.c   Sat Nov 24 16:22:41 2001
@@ -462,6 +462,7 @@
    lock_super(s);
    if (!type->read_super(s, data, flags & MS_VERBOSE ? 1 : 0))
       goto out_fail;
+   s->s_flags |= MS_ACTIVE;
    unlock_super(s);
    /* tell bdcache that we are going to keep this one */
    if (bdev)
@@ -614,6 +615,7 @@
    lock_super(s);
    if (!fs_type->read_super(s, data, flags & MS_VERBOSE ? 1 : 0))
       goto out_fail;
+   s->s_flags |= MS_ACTIVE;
    unlock_super(s);
    get_filesystem(fs_type);
    path_release(&nd);
@@ -695,6 +697,7 @@
       lock_super(s);
       if (!fs_type->read_super(s, data, flags & MS_VERBOSE ? 1 : 0))
          goto out_fail;
+      s->s_flags |= MS_ACTIVE;
       unlock_super(s);
       get_filesystem(fs_type);
       return s;
@@ -739,6 +742,7 @@
    dput(root);
    fsync_super(sb);
    lock_super(sb);
+   sb->s_flags &= ~MS_ACTIVE;
    invalidate_inodes(sb);   /* bad name - it should be evict_inodes() */
    if (sop) {
       if (sop->write_super && sb->s_dirt)


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