VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git] / fs / bad_inode.c
index c0619d2..3957ad1 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/stat.h>
 #include <linux/time.h>
 #include <linux/smp_lock.h>
+#include <linux/namei.h>
 
 /*
  * The follow_link operation is special: it must behave as a no-op
@@ -21,7 +22,8 @@
  */
 static int bad_follow_link(struct dentry *dent, struct nameidata *nd)
 {
-       return vfs_follow_link(nd, ERR_PTR(-EIO));
+       nd_set_link(nd, ERR_PTR(-EIO));
+       return 0;
 }
 
 static int return_EIO(void)