]> git.baikalelectronics.ru Git - kernel.git/commit
afs_lookup(): switch to d_splice_alias()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 24 Jun 2018 14:43:51 +0000 (10:43 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 Aug 2018 19:44:14 +0000 (15:44 -0400)
commita37f869eda8e19f6575dfc66f8ec33a20bef64aa
tree0e8d0acb50520154d040fa7401e0c70282c58a31
parent516b424dc1116697b06ad2636a83268d6629c708
afs_lookup(): switch to d_splice_alias()

->lookup() methods can (and should) use d_splice_alias() instead of
d_add().  Even if they are not going to be hit by open_by_handle(),
code does get copied around; besides, d_splice_alias() has better
calling conventions for use in ->lookup(), so the code gets simpler.

Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/afs/dir.c