Whamcloud - gitweb
LU-3203 mdd: check result of dt_trans_create() using IS_ERR().
authorJohn L. Hammond <john.hammond@intel.com>
Mon, 22 Apr 2013 19:18:38 +0000 (14:18 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 1 May 2013 06:59:41 +0000 (02:59 -0400)
commit8ef1b1f59948970b828d889ba8afabc2cc57e8cf
tree19ce580463a0c49bd6a50f9e3d7c8d8f4d0052e2
parent498bc06f24720234b43d3b98f02fedd0688ab60f
LU-3203 mdd: check result of dt_trans_create() using IS_ERR().

In mdd_convert_linkea() and orphan_object_destroy() check the result
of dt_trans_create() using IS_ERR().  In mdd_close() avoid passing an
error pointer to mdd_trans_stop().  In local_oid_storage_init() avoid
a spurious mutex unlock after failure in dt_trans_create().  Trivially
simplify cleanup in mdd_convert_remove_dots() and mdd_convert_lma().

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I4a5c53d3efa9c69c1428a8e5a875a531c9206d12
Reviewed-on: http://review.whamcloud.com/6117
Tested-by: Hudson
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/mdd/mdd_compat.c
lustre/mdd/mdd_object.c
lustre/mdd/mdd_orphans.c
lustre/obdclass/local_storage.c