Whamcloud - gitweb
LU-4067 osd: apply PTR_ERR() to right pointer
authorJohn L. Hammond <john.hammond@intel.com>
Tue, 8 Oct 2013 23:23:15 +0000 (18:23 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 30 Dec 2013 22:36:04 +0000 (17:36 -0500)
commit5720701338cff3c29254305d68fe6def8251e968
treecda4ecfe40466cf648422ebebbd7d8217e434362
parentb67aa42125d4ee419b28e5190ce5b8973bc9733a
LU-4067 osd: apply PTR_ERR() to right pointer

In ofd_precreate_objects(), osd_index_ea_insert(), and
osd_object_create() ensure that PTR_ERR() is applied to the right
pointer. Also convert some explicit casts of ERR_PTRs to ERR_CAST()
calls.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I846b10543ae426652ad72c277d2c0f0bc259fd6e
Reviewed-on: http://review.whamcloud.com/7887
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/ofd/ofd_objects.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-zfs/osd_object.c