]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush: fix get_rule_step() can't catch all errors
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 21 Apr 2016 02:57:23 +0000 (10:57 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 21 Apr 2016 07:49:07 +0000 (15:49 +0800)
commitec43eb209fa1818d07a6cb567d3c8b82088598a4
treec45fc07ab1c35bf4f533e1d4e39825696dfe26ec
parentb0b5392d1a403cb482e9632e0f773924e337dcf6
crush: fix get_rule_step() can't catch all errors

Because get_rule() may return -ENOENT on error, we shall
use the IS_ERR macro to catch that, as all the other callers does.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/crush/CrushWrapper.h