linux/generic: fix mini_fo for kernels >= 2.6.38
[openwrt.git] / target / linux / generic / patches-2.6.38 / 218-mini_fo_fix_2_6_38.patch
1 --- a/fs/mini_fo/dentry.c
2 +++ b/fs/mini_fo/dentry.c
3 @@ -96,7 +96,7 @@ mini_fo_d_hash(dentry_t *dentry, qstr_t 
4                 if(hidden_sto_dentry &&
5                    hidden_sto_dentry->d_op &&
6                    hidden_sto_dentry->d_op->d_hash) {
7 -                       err = hidden_sto_dentry->d_op->d_hash(hidden_sto_dentry, name);
8 +                       err = hidden_sto_dentry->d_op->d_hash(hidden_sto_dentry, hidden_sto_dentry->d_inode, name);
9                 }
10                 goto out;
11         }
12 @@ -106,7 +106,7 @@ mini_fo_d_hash(dentry_t *dentry, qstr_t 
13                 if(hidden_dentry &&
14                    hidden_dentry->d_op &&
15                    hidden_dentry->d_op->d_hash) {
16 -                       err = hidden_dentry->d_op->d_hash(hidden_dentry, name);
17 +                       err = hidden_dentry->d_op->d_hash(hidden_dentry, hidden_sto_dentry->d_inode, name);
18                 }
19                 goto out;
20         }
21 @@ -116,14 +116,14 @@ mini_fo_d_hash(dentry_t *dentry, qstr_t 
22                 if(hidden_sto_dentry &&
23                    hidden_sto_dentry->d_op &&
24                    hidden_sto_dentry->d_op->d_hash) {
25 -                       err = hidden_sto_dentry->d_op->d_hash(hidden_sto_dentry, name);
26 +                       err = hidden_sto_dentry->d_op->d_hash(hidden_sto_dentry, hidden_sto_dentry->d_inode, name);
27                         goto out;
28                 }
29                 hidden_dentry = dtohd(dentry);
30                 if(hidden_dentry &&
31                    hidden_dentry->d_op &&
32                    hidden_dentry->d_op->d_hash) {
33 -                       err = hidden_dentry->d_op->d_hash(hidden_dentry, name);
34 +                       err = hidden_dentry->d_op->d_hash(hidden_dentry, hidden_sto_dentry->d_inode, name);
35                         goto out;
36                 }
37         }