From: Kent Overstreet Date: Tue, 12 Nov 2013 21:49:10 +0000 (-0800) Subject: bcache: Improve bucket_prio() calculation X-Git-Tag: v3.14-rc1~42^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0a985a4b1b533311ec88c85177c45d036313f75;p=pandora-kernel.git bcache: Improve bucket_prio() calculation 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 --- Reading git-diff-tree failed