crush: do is_out test only if we do not collide
authorIlya Dryomov <idryomov@gmail.com>
Thu, 16 Feb 2017 14:21:15 +0000 (15:21 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 23 Feb 2017 21:22:02 +0000 (22:22 +0100)
commit98ba6af728de99953e25e550dbeca588c258ef03
tree3a49891c922e9058f5acbacd7a8b13dfb18c6993
parentdf963ea8a082d31521a120e8e31a29ad8a1dc215
crush: do is_out test only if we do not collide

The is_out() test may require an additional hashing operation, so we
should skip it whenever possible.

Reflects ceph.git commit db107cc7f15cf2481894add325dc93e33479f529.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/crush/mapper.c