Browse Source

afs: dget_parent() can't return a negative dentry

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Al Viro 12 năm trước cách đây
mục cha
commit
13f3583892
1 tập tin đã thay đổi với 0 bổ sung3 xóa
  1. 0 3
      fs/afs/dir.c

+ 0 - 3
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 */