OSDN Git Service

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)
commit34b2a88fb4aa4de34e1d5f9fc2761b746980f9b1
tree0e8d0acb50520154d040fa7401e0c70282c58a31
parent855371bd01b4cd8cf0e2b8ca172a5c30a481f963
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