]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common: bit_vector extent calculation incorrect for last page
authorJason Dillaman <dillaman@redhat.com>
Mon, 10 Aug 2015 13:34:42 +0000 (09:34 -0400)
committerJason Dillaman <dillaman@redhat.com>
Mon, 10 Aug 2015 13:35:49 +0000 (09:35 -0400)
commitc6d98992691683524d3d96def83a90a6f5fe7f93
tree7ef8f6b631763c27f7d97ae5218d7e42a88d2bea
parente35d27fc69d1b7a3be7a61237ebf1e6bdd9070dd
common: bit_vector extent calculation incorrect for last page

It's highly probable that the last page in the bit vector will not
be a full page size.  As a result, the computed extents will extend
beyond the data portion of the bit vector, resulting in a end_of_buffer
exception.

Fixes: #12611
Backport: hammer
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/common/bit_vector.hpp