]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Fix afs_lookup() to not clobber the version on a new dentry
authorDavid Howells <dhowells@redhat.com>
Tue, 14 Jan 2020 16:16:54 +0000 (16:16 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 14 Jan 2020 17:40:06 +0000 (09:40 -0800)
commit593e197c9b1d4b34f0a1028d640d7a310629b2b7
treef9bee40bed2a47ac116ca9dfef1d265dfc059f72
parent7573113eeeda2e67529efdb392474362487a6bcc
afs: Fix afs_lookup() to not clobber the version on a new dentry

Fix afs_lookup() to not clobber the version set on a new dentry by
afs_do_lookup() - especially as it's using the wrong version of the
version (we need to use the one given to us by whatever op the dir
contents correspond to rather than what's in the afs_vnode).

Fixes: 17d428114b63 ("afs: Fix missing dentry data version updating")
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/afs/dir.c