bcache: Improve bucket_prio() calculation
authorKent Overstreet <kmo@daterainc.com>
Tue, 12 Nov 2013 21:49:10 +0000 (13:49 -0800)
committerKent Overstreet <kmo@daterainc.com>
Wed, 8 Jan 2014 21:05:14 +0000 (13:05 -0800)
When deciding what order to reuse buckets we take into account both the bucket's
priority (which indicates lru order) and also the amount of live data in that
bucket. The way they were scaled together wasn't as correct as it could be...
this patch improves and documents it.

Signed-off-by: Kent Overstreet <kmo@daterainc.com>

No differences found