Whamcloud - gitweb
07d10088fd21740477eb188a56ba4895f4794ec3
[fs/lustre-release.git] / lustre / kernel_patches / patches / vfs_gns-2.6.10-fc3.patch
1 Index: linux-2.6.10/fs/namespace.c
2 ===================================================================
3 --- linux-2.6.10.orig/fs/namespace.c    2005-03-31 17:58:42.827926064 +0800
4 +++ linux-2.6.10/fs/namespace.c 2005-03-31 18:19:21.976546840 +0800
5 @@ -62,6 +62,7 @@
6                 INIT_LIST_HEAD(&mnt->mnt_mounts);
7                 INIT_LIST_HEAD(&mnt->mnt_list);
8                 INIT_LIST_HEAD(&mnt->mnt_fslink);
9 +               INIT_LIST_HEAD(&mnt->mnt_lustre_list);
10                 if (name) {
11                         int size = strlen(name)+1;
12                         char *newname = kmalloc(size, GFP_KERNEL);
13 @@ -177,6 +178,9 @@
14  {
15         struct super_block *sb = mnt->mnt_sb;
16         dput(mnt->mnt_root);
17 +        spin_lock(&dcache_lock);
18 +        list_del(&mnt->mnt_lustre_list);
19 +        spin_unlock(&dcache_lock);
20         free_vfsmnt(mnt);
21         deactivate_super(sb);
22  }