summaryrefslogtreecommitdiff
path: root/drivers/md/dm-log.c
diff options
context:
space:
mode:
authorKent Overstreet <kmo@daterainc.com>2013-11-13 01:49:10 +0400
committerKent Overstreet <kmo@daterainc.com>2014-01-09 01:05:14 +0400
commite0a985a4b1b533311ec88c85177c45d036313f75 (patch)
tree0433591d9d9124ef559fc54f2f71eb7027f0a56c /drivers/md/dm-log.c
parent3bdad1e40d11aad31f2322f21e943c31ef20d9da (diff)
downloadlinux-e0a985a4b1b533311ec88c85177c45d036313f75.tar.xz
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 <kmo@daterainc.com>
Diffstat (limited to 'drivers/md/dm-log.c')
0 files changed, 0 insertions, 0 deletions