Whamcloud - gitweb
LU-3498 kernel: remove uses of IS_ERR_VALUE() 63/10363/3
authorJohn L. Hammond <john.hammond@intel.com>
Mon, 24 Jun 2013 20:39:51 +0000 (15:39 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 22 May 2014 04:47:18 +0000 (04:47 +0000)
commitb0e7a05b45d21060c570fc1f57baa8c9b8a22559
treeb2027f7b4184922351962f8b1677f530d159ed90
parent9aacef521e971dff6097a4ae335bd840521be5dd
LU-3498 kernel: remove uses of IS_ERR_VALUE()

Remove most uses of IS_ERR_VALUE(). This macro was often given an int
argument coming from PTR_ERR(). This invokes implementation defined
behavior since the long value gotten by applying PTR_ERR() to a kernel
pointer will usually not be representable as an int. Moreover it may
be just plain wrong to do this since the expressions IS_ERR(p) and
IS_ERR_VALUE((int) PTR_ERR(p)) are not equivalent for a general
pointer p.

Lustre-commit: 5cd7c3f2ab53a07cf98aef83685dafddb13077ed
Lustre-change: http://review.whamcloud.com/6759

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Change-Id: Ib76592a1fc491539d28a51668c7f06347e988f9f
Reviewed-on: http://review.whamcloud.com/10363
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
13 files changed:
lnet/lnet/acceptor.c
lnet/lnet/router.c
lnet/ulnds/socklnd/usocklnd.c
lustre/ldlm/ldlm_lockd.c
lustre/llite/statahead.c
lustre/mdc/mdc_request.c
lustre/mgc/mgc_request.c
lustre/obdclass/llog.c
lustre/osd-ldiskfs/osd_scrub.c
lustre/osp/osp_sync.c
lustre/ptlrpc/pinger.c
lustre/ptlrpc/service.c
lustre/quota/qsd_reint.c