staging: lustre: llite: refine ll_find_alias based on d_exact_alias
authorNeilBrown <neilb@suse.com>
Mon, 12 Feb 2018 21:30:48 +0000 (08:30 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2018 14:15:08 +0000 (15:15 +0100)
commit8016ab9ebbda3dee637ac66b9e0f7a74ef6fe9e6
tree3827c126a856e22729b0f543ea497c5d3624c449
parent7e08e9a8942dfc38693edf2e389cde620e918356
staging: lustre: llite: refine ll_find_alias based on d_exact_alias

The task of ll_find_alias() is now very similar to d_exact_alias().
We cannot use that function directly, but we can copy much of
the structure so that the similarities and differences are more
obvious.
Examining d_exact_alias() shows that the d_lock spinlock does not
need to be held in ll_find_alias as much as it currently is.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/namei.c