]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging/lustre: Remove ns_is_server()
authorOleg Drokin <green@linuxhacker.ru>
Thu, 1 Oct 2015 04:12:37 +0000 (00:12 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Oct 2015 09:17:19 +0000 (11:17 +0200)
commit71570b98e35d9f00a5ee9936204e5d7c380491d6
tree3319b281c59b7cb5fbfa244db37f11e6616389a8
parentcf739f84a326d009670ba5c2d8d7b63216722ffc
staging/lustre: Remove ns_is_server()

Since the code we have is Lustre-client only, this function
always returns 0, so drop it and amend all the callsites to
drop dead code.
One of the places also sets LDLM_FL_NS_SRV to indicate a lock
is in a server namespace. This too cannot happen in this code,
so drop all such checks as well.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/lustre_dlm.h
drivers/staging/lustre/lustre/ldlm/l_lock.c
drivers/staging/lustre/lustre/ldlm/ldlm_lock.c
drivers/staging/lustre/lustre/ldlm/ldlm_pool.c