Whamcloud - gitweb
LU-12137 osd-ldiskfs: implement proper error handling in osd_ios_OBJECTS_scan 44/35644/3
authorJames Simmons <jsimmons@infradead.org>
Sat, 3 Aug 2019 13:59:16 +0000 (09:59 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 15 Aug 2019 07:54:43 +0000 (07:54 +0000)
commit752dec2f36cef0e4893f9c68d7cc2b9505488471
tree4484becea03e8cac66171d900e3096b4a98f6c32
parentc2134f1e55150c6f7add284d8bf3c32a445ab235
LU-12137 osd-ldiskfs: implement proper error handling in osd_ios_OBJECTS_scan

In the linux kernel it is considered proper coding style to
handle error codes returned by functions instead of successful
completions. Reverse the error handling of the return values from
osd_ios_lookup_one_len(). This also reduces the code indentation
and makes it easier to follow.

Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Change-Id: Idd3b91218f80a88d69206d3c2570bea22ff1fbb1
Reviewed-on: https://review.whamcloud.com/35644
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/osd-ldiskfs/osd_scrub.c