Whamcloud - gitweb
LU-2675 mdt: refactor mdt_getattr_name_lock() 61/9861/3
authorJohn L. Hammond <john.hammond@intel.com>
Tue, 1 Apr 2014 16:34:55 +0000 (11:34 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 19 Apr 2014 07:38:28 +0000 (07:38 +0000)
commit1a937b36bb212eb720d504f124d9b135975892d6
treee28a8caadd26768db30e6e9e22a175b448103483
parent0603cc1a773dbe72f520e856743ef40fd7dfa1af
LU-2675 mdt: refactor mdt_getattr_name_lock()

In mdt_getattr_name_lock(), concentrate the cross reference handling
code into one block. Remove assertions about the remoteness of parent.
Remove some set but unused local variables in mdt_handler.c. Declare
functions static where possible. Remove the unused structures
mdt_handler and mdt_opc_slice.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I3468e200130259cf7c760bb080c1bdff9e03fd8e
Reviewed-on: http://review.whamcloud.com/9861
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/target/out_handler.c