Whamcloud - gitweb
LU-4067 osd: apply PTR_ERR() to right pointer 87/7887/2
authorJohn L. Hammond <john.hammond@intel.com>
Tue, 8 Oct 2013 23:23:15 +0000 (18:23 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 25 Oct 2013 03:05:23 +0000 (03:05 +0000)
commite7d6dcdedc9c676c84e6bee3ed6cbf73d56ff791
tree6ca1da5b1c96d118a160a6c162a8454eacb62602
parent54e6f66590057ee1229fecfa532decfc62bd222e
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