Whamcloud - gitweb
LU-4078 mdc: fix bad ERR_PTR usage in mdc_locks.c 86/7886/2
authorJohn L. Hammond <john.hammond@intel.com>
Tue, 8 Oct 2013 22:23:09 +0000 (17:23 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 25 Oct 2013 03:05:19 +0000 (03:05 +0000)
commit54e6f66590057ee1229fecfa532decfc62bd222e
tree9d6c2b2bb05b1fea2dcf69f6bb1ffc85a9009afe
parenta3154dc85366d73b376fa5ae2b74bab502b9d8a9
LU-4078 mdc: fix bad ERR_PTR usage in mdc_locks.c

In mdc_intent_open_pack() return an ERR_PTR() rather than NULL when
ldlm_prep_enqueue_req() fails. In mdc_intent_getattr_async() check the
return value of mdc_intent_getattr_pack() using IS_ERR(). Clean up the
includes in mdc_locks.c.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I89348389ccd102d1226caf16b315ac9b2a96b307
Reviewed-on: http://review.whamcloud.com/7886
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
lustre/mdc/mdc_locks.c