Whamcloud - gitweb
LU-5858 obdclass: eliminate NULL error return 54/12554/4
authorBob Glossman <bob.glossman@intel.com>
Tue, 4 Nov 2014 19:14:35 +0000 (11:14 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 9 Dec 2014 08:12:25 +0000 (08:12 +0000)
commit81f7a3ceea4039f8f81d3aa009079aa27b3fb1b2
treed0abaac3b7254ec80f016027dcc18ee96bb9f058
parent35fe4c696dd0faadc9405c19c68f0dd56aa5bb01
LU-5858 obdclass: eliminate NULL error return

Always return an ERR_PTR() on errors, never return a NULL,
in lu_object_find_slice().  Also clean up callers who
no longer need special case handling of NULL returns.

Signed-off-by: Bob Glossman <bob.glossman@intel.com>
Change-Id: I57ddb38abaec7caf57bb63a75dbd76e181ba72b2
Reviewed-on: http://review.whamcloud.com/12554
Tested-by: Jenkins
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lfsck/lfsck_internal.h
lustre/mdd/mdd_device.c
lustre/obdclass/lu_object.c