git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git]
/
fs
/
bad_inode.c
diff --git
a/fs/bad_inode.c
b/fs/bad_inode.c
index
c0619d2
..
3957ad1
100644
(file)
--- a/
fs/bad_inode.c
+++ b/
fs/bad_inode.c
@@
-13,6
+13,7
@@
#include <linux/stat.h>
#include <linux/time.h>
#include <linux/smp_lock.h>
#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
/*
* 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)
{
*/
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)
}
static int return_EIO(void)