summaryrefslogtreecommitdiffstats
path: root/fs/afs/dir.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-09-29 22:29:04 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2013-09-30 04:02:24 +0200
commit13f3583892cb7afdb2e9eb0207dc4e03ec6f01fd (patch)
treeb8dbed6526d4e47418173051fb595fb60268b4d4 /fs/afs/dir.c
parentocfs2: needs ->d_lock to poke in ->d_parent->d_inode from ->d_revalidate() (diff)
downloadlinux-13f3583892cb7afdb2e9eb0207dc4e03ec6f01fd.tar.xz
linux-13f3583892cb7afdb2e9eb0207dc4e03ec6f01fd.zip
afs: dget_parent() can't return a negative dentry
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/afs/dir.c')
-rw-r--r--fs/afs/dir.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/afs/dir.c b/fs/afs/dir.c
index 646337dc5201..529300327f45 100644
--- a/fs/afs/dir.c
+++ b/fs/afs/dir.c
@@ -600,9 +600,6 @@ static int afs_d_revalidate(struct dentry *dentry, unsigned int flags)
/* lock down the parent dentry so we can peer at it */
parent = dget_parent(dentry);
- if (!parent->d_inode)
- goto out_bad;
-
dir = AFS_FS_I(parent->d_inode);
/* validate the parent directory */