linux/generic: fix mini_fo for kernels >= 2.6.38
authorAlexandros C. Couloumbis <alex@ozo.com>
Thu, 24 Feb 2011 14:45:53 +0000 (14:45 +0000)
committerAlexandros C. Couloumbis <alex@ozo.com>
Thu, 24 Feb 2011 14:45:53 +0000 (14:45 +0000)
SVN-Revision: 25699

target/linux/generic/patches-2.6.38/218-mini_fo_fix_2_6_38.patch [new file with mode: 0644]

diff --git a/target/linux/generic/patches-2.6.38/218-mini_fo_fix_2_6_38.patch b/target/linux/generic/patches-2.6.38/218-mini_fo_fix_2_6_38.patch
new file mode 100644 (file)
index 0000000..e61f564
--- /dev/null
@@ -0,0 +1,37 @@
+--- a/fs/mini_fo/dentry.c
++++ b/fs/mini_fo/dentry.c
+@@ -96,7 +96,7 @@ mini_fo_d_hash(dentry_t *dentry, qstr_t 
+               if(hidden_sto_dentry &&
+                  hidden_sto_dentry->d_op &&
+                  hidden_sto_dentry->d_op->d_hash) {
+-                      err = hidden_sto_dentry->d_op->d_hash(hidden_sto_dentry, name);
++                      err = hidden_sto_dentry->d_op->d_hash(hidden_sto_dentry, hidden_sto_dentry->d_inode, name);
+               }
+               goto out;
+       }
+@@ -106,7 +106,7 @@ mini_fo_d_hash(dentry_t *dentry, qstr_t 
+               if(hidden_dentry &&
+                  hidden_dentry->d_op &&
+                  hidden_dentry->d_op->d_hash) {
+-                      err = hidden_dentry->d_op->d_hash(hidden_dentry, name);
++                      err = hidden_dentry->d_op->d_hash(hidden_dentry, hidden_sto_dentry->d_inode, name);
+               }
+               goto out;
+       }
+@@ -116,14 +116,14 @@ mini_fo_d_hash(dentry_t *dentry, qstr_t 
+               if(hidden_sto_dentry &&
+                  hidden_sto_dentry->d_op &&
+                  hidden_sto_dentry->d_op->d_hash) {
+-                      err = hidden_sto_dentry->d_op->d_hash(hidden_sto_dentry, name);
++                      err = hidden_sto_dentry->d_op->d_hash(hidden_sto_dentry, hidden_sto_dentry->d_inode, name);
+                       goto out;
+               }
+               hidden_dentry = dtohd(dentry);
+               if(hidden_dentry &&
+                  hidden_dentry->d_op &&
+                  hidden_dentry->d_op->d_hash) {
+-                      err = hidden_dentry->d_op->d_hash(hidden_dentry, name);
++                      err = hidden_dentry->d_op->d_hash(hidden_dentry, hidden_sto_dentry->d_inode, name);
+                       goto out;
+               }
+       }