[PATCH 5/7] Drivers: hv: hv_balloon: eliminate jumps in piecewiese linear floor function

2015-03-27 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov Commit 79208c57da53 ("Drivers: hv: hv_balloon: Make adjustments in computing the floor") was inacurate as it introduced a jump in our piecewiese linear 'floor' function: At 2048MB we have: Left limit: 104 + 2048/8 = 360 Right limit: 256 + 2048/16 = 384 (so the right value

[PATCH 5/7] Drivers: hv: hv_balloon: eliminate jumps in piecewiese linear floor function

2015-03-27 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov vkuzn...@redhat.com Commit 79208c57da53 (Drivers: hv: hv_balloon: Make adjustments in computing the floor) was inacurate as it introduced a jump in our piecewiese linear 'floor' function: At 2048MB we have: Left limit: 104 + 2048/8 = 360 Right limit: 256 + 2048/16 = 384