Re: [PATCH] Drivers: hv: hv_balloon: eliminate jumps in piecewiese linear floor function

2015-03-26 Thread Laszlo Ersek
On 03/26/15 11:26, Vitaly Kuznetsov wrote: > 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

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

2015-03-26 Thread 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 is 232) We now have to m