1. 19 3月, 2014 2 次提交
  2. 09 1月, 2014 2 次提交
    • K
      bcache: Improve bucket_prio() calculation · e0a985a4
      Kent Overstreet 提交于
      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: NKent Overstreet <kmo@daterainc.com>
      e0a985a4
    • K
      bcache: Rework allocator reserves · 78365411
      Kent Overstreet 提交于
      We need a reserve for allocating buckets for new btree nodes - and now that
      we've got multiple btrees, it really needs to be per btree.
      
      This reworks the reserves so we've got separate freelists for each reserve
      instead of watermarks, which seems to make things a bit cleaner, and it adds
      some code so that btree_split() can make sure the reserve is available before it
      starts.
      Signed-off-by: NKent Overstreet <kmo@daterainc.com>
      78365411
  3. 17 12月, 2013 1 次提交
  4. 11 11月, 2013 6 次提交
  5. 12 7月, 2013 1 次提交
  6. 27 6月, 2013 2 次提交
    • K
      bcache: Fix/revamp tracepoints · c37511b8
      Kent Overstreet 提交于
      The tracepoints were reworked to be more sensible, and fixed a null
      pointer deref in one of the tracepoints.
      
      Converted some of the pr_debug()s to tracepoints - this is partly a
      performance optimization; it used to be that with DEBUG or
      CONFIG_DYNAMIC_DEBUG pr_debug() was an empty macro; but at some point it
      was changed to an empty inline function.
      
      Some of the pr_debug() statements had rather expensive function calls as
      part of the arguments, so this code was getting run unnecessarily even
      on non debug kernels - in some fast paths, too.
      Signed-off-by: NKent Overstreet <koverstreet@google.com>
      c37511b8
    • K
      bcache: Convert allocator thread to kthread · 119ba0f8
      Kent Overstreet 提交于
      Using a workqueue when we just want a single thread is a bit silly.
      Signed-off-by: NKent Overstreet <koverstreet@google.com>
      119ba0f8
  7. 01 5月, 2013 1 次提交
  8. 26 3月, 2013 1 次提交
  9. 24 3月, 2013 1 次提交