1 Index: linux-2.6.10/fs/namespace.c
2 ===================================================================
3 --- linux-2.6.10.orig/fs/namespace.c 2005-04-07 14:55:39.000000000 +0800
4 +++ linux-2.6.10/fs/namespace.c 2005-04-07 14:55:41.612112360 +0800
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);
11 int size = strlen(name)+1;
12 char *newname = kmalloc(size, GFP_KERNEL);
15 struct super_block *sb = mnt->mnt_sb;
17 + spin_lock(&dcache_lock);
18 + list_del(&mnt->mnt_lustre_list);
19 + spin_unlock(&dcache_lock);
23 Index: linux-2.6.10/include/linux/dcache.h
24 ===================================================================
25 --- linux-2.6.10.orig/include/linux/dcache.h 2005-04-07 14:55:40.871224992 +0800
26 +++ linux-2.6.10/include/linux/dcache.h 2005-04-07 15:12:37.823624728 +0800
28 #define DCACHE_UNHASHED 0x0010
29 #define DCACHE_LUSTRE_INVALID 0x0020 /* invalidated by Lustre */
31 -#define DCACHE_CROSS_REF 0x0040 /* entry points to inode on another MDS */
32 +#define DCACHE_CROSS_REF 0x0040 /* entry points to inode on another MDS */
37 extern spinlock_t dcache_lock;