Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / kernel_patches / patches / dcache-qstr-api-fix-2.6-suse.patch
1 Index: linux-2.6.5-7.276/include/linux/dcache.h
2 ===================================================================
3 --- linux-2.6.5-7.276.orig/include/linux/dcache.h
4 +++ linux-2.6.5-7.276/include/linux/dcache.h
5 @@ -38,7 +38,6 @@ struct qstr {
6         const unsigned char * name;
7         unsigned int len;
8         unsigned int hash;
9 -       char name_str[0];
10  };
11  
12  #include <linux/namei.h>
13 @@ -104,7 +103,6 @@ struct dentry {
14         struct rcu_head d_rcu;
15         struct dcookie_struct * d_cookie; /* cookie, if any */
16         unsigned long d_move_count;     /* to indicated moved dentry while lockless lookup */
17 -       struct qstr * d_qstr;           /* quick str ptr used in lockless lookup and concurrent d_move */
18         struct dentry * d_parent;       /* parent directory */
19         struct qstr d_name;
20         struct hlist_node d_hash;       /* lookup hash list */  
21 Index: linux-2.6.5-7.276/fs/dcache.c
22 ===================================================================
23 --- linux-2.6.5-7.276.orig/fs/dcache.c
24 +++ linux-2.6.5-7.276/fs/dcache.c
25 @@ -775,7 +775,6 @@ struct dentry * d_alloc(struct dentry * 
26         dentry->d_parent = NULL;
27         dentry->d_move_count = 0;
28         dentry->d_sb = NULL;
29 -       dentry->d_qstr = &dentry->d_name;
30         dentry->d_name.name = str;
31         dentry->d_name.len = name->len;
32         dentry->d_name.hash = name->hash;