Whamcloud - gitweb
LU-3474 mdd: mdd_links_read() to return linkea_init() errors
authorBruno Faccini <bruno.faccini@intel.com>
Thu, 4 Jul 2013 08:13:40 +0000 (10:13 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 8 Aug 2013 05:49:56 +0000 (01:49 -0400)
commit87ae6658b0f085cbb977c6af8e1ec83391c59d6b
tree5e8d5367573cfdfcdfaaa41c9d7b7076724704d4
parent5658cb8373b7a4730049203fd5a30c8b2a441c00
LU-3474 mdd: mdd_links_read() to return linkea_init() errors

ASSERTION(ldata->ld_leh != ((void *)0)) can be triggered in
linkea_links_find() due to earlier mdd_links_read() call
missing to return linkea_init() errors and thus preventing
to detect that ld_leh is not populated.
Plus a few error handling fixes to avoid unnecessary msgs
and also prevent early return.

Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Change-Id: I35b1076d8eb036dd600e0fda711417634590b9df
Reviewed-on: http://review.whamcloud.com/6676
Tested-by: Hudson
Reviewed-by: wangdi <di.wang@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdd/mdd_dir.c