Whamcloud - gitweb
LU-3474 mdd: mdd_links_read() to return linkea_init() errors 76/6676/5
authorBruno Faccini <bruno.faccini@intel.com>
Thu, 4 Jul 2013 08:13:40 +0000 (10:13 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 19 Jul 2013 04:38:56 +0000 (04:38 +0000)
commit3b3ea5e35f1859add7bf9f51ca47f4ab0a2eb563
treea9f4e8c88ba00e358e880d8e85a01fc24ac5ed89
parentdd0adebec5edade78562c0168169ec024bf33a44
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