author: David Howells <dhowells@redhat.com> 2020-01-14 16:16:54 +0000
committer: Linus Torvalds <torvalds@linux-foundation.org> 2020-01-14 09:40:06 -0800
commit: f52b83b0b1c40ada38df917973ab719a4a753951
parent: 40a708bd622b78582ae3d280de29b09b50bd04c0
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 5 deletions
diff --git a/fs/afs/dir.c b/fs/afs/dir.c
index 813db1708494..5c794f4b051a 100644
--- a/fs/afs/dir.c
+++ b/fs/afs/dir.c
@@ -952,12 +952,8 @@ static struct dentry *afs_lookup(struct inode *dir, struct dentry *dentry,
afs_stat_v(dvnode, n_lookup);
inode = afs_do_lookup(dir, dentry, key);
key_put(key);
- if (inode == ERR_PTR(-ENOENT)) {
+ if (inode == ERR_PTR(-ENOENT))
inode = afs_try_auto_mntpt(dentry, dir);
- } else {
- dentry->d_fsdata =
- (void *)(unsigned long)dvnode->status.data_version;
- }
if (!IS_ERR_OR_NULL(inode))
fid = AFS_FS_I(inode)->fid;