graph: drop more than 1 entry, if we are more than 1 above the limit
authorJens Axboe <axboe@kernel.dk>
Sun, 11 Mar 2012 20:35:47 +0000 (21:35 +0100)
committerJens Axboe <axboe@kernel.dk>
Sun, 11 Mar 2012 20:35:47 +0000 (21:35 +0100)
commitc148daed3da130062a7575d5667ca0e044927153
tree197ab5b2a00b68f6f88d0f0550f475e62b0d9503
parentc05d90567e28705e6ef77591ebc23ad5b7974f68
graph: drop more than 1 entry, if we are more than 1 above the limit

If we dynamically reduce the data entry limit, it's not enough to
drop one entry when we add one. In that case, drop two everytime
we add one. Then we'll eventually get smoothly down to the specified
limit.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
graph.c