dm btree remove: fix bug in redistribute3
authorDennis Yang <shinrairis@gmail.com>
Fri, 26 Jun 2015 14:25:48 +0000 (15:25 +0100)
committerMike Snitzer <snitzer@redhat.com>
Sun, 5 Jul 2015 21:43:58 +0000 (17:43 -0400)
commit4c7e309340ff85072e96f529582d159002c36734
tree1884c3e38170df1f74a37a6a0a075562f7bd88a3
parentd770e558e21961ad6cfdf0ff7df0eb5d7d4f0754
dm btree remove: fix bug in redistribute3

redistribute3() shares entries out across 3 nodes.  Some entries were
being moved the wrong way, breaking the ordering.  This manifested as a
BUG() in dm-btree-remove.c:shift() when entries were removed from the
btree.

For additional context see:
https://www.redhat.com/archives/dm-devel/2015-May/msg00113.html

Signed-off-by: Dennis Yang <shinrairis@gmail.com>
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org
drivers/md/persistent-data/dm-btree-remove.c