]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/hfs/sysdep.c
Merge branch 'master' into tk71
[mv-sheeva.git] / fs / hfs / sysdep.c
index 7478f5c219aa42336984117b937f84039af8a417..19cf291eb91f6325126121393ca2354204fb6c5f 100644 (file)
@@ -8,15 +8,20 @@
  * This file contains the code to do various system dependent things.
  */
 
+#include <linux/namei.h>
 #include "hfs_fs.h"
 
 /* dentry case-handling: just lowercase everything */
 
 static int hfs_revalidate_dentry(struct dentry *dentry, struct nameidata *nd)
 {
-       struct inode *inode = dentry->d_inode;
+       struct inode *inode;
        int diff;
 
+       if (nd->flags & LOOKUP_RCU)
+               return -ECHILD;
+
+       inode = dentry->d_inode;
        if(!inode)
                return 1;