aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorKent Overstreet <kmo@daterainc.com>2014-03-17 19:55:55 -0400
committerKent Overstreet <kmo@daterainc.com>2014-03-18 15:23:36 -0400
commit2531d9ee61fa08a5a9ab8f002c50779888d232c7 (patch)
tree4a75259d27010a2b48c0aca0e5b490060db81f75 /include/trace
parent0a63b66db566cffdf90182eb6e66fdd4d0479e63 (diff)
bcache: Kill unused freelist
This was originally added as at optimization that for various reasons isn't needed anymore, but it does add a lot of nasty corner cases (and it was responsible for some recently fixed bugs). Just get rid of it now. Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/bcache.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/trace/events/bcache.h b/include/trace/events/bcache.h
index 8fc2a7134d3c..c9c3c044b32f 100644
--- a/include/trace/events/bcache.h
+++ b/include/trace/events/bcache.h
@@ -446,7 +446,6 @@ TRACE_EVENT(bcache_alloc_fail,
446 __field(dev_t, dev ) 446 __field(dev_t, dev )
447 __field(unsigned, free ) 447 __field(unsigned, free )
448 __field(unsigned, free_inc ) 448 __field(unsigned, free_inc )
449 __field(unsigned, unused )
450 __field(unsigned, blocked ) 449 __field(unsigned, blocked )
451 ), 450 ),
452 451
@@ -454,13 +453,12 @@ TRACE_EVENT(bcache_alloc_fail,
454 __entry->dev = ca->bdev->bd_dev; 453 __entry->dev = ca->bdev->bd_dev;
455 __entry->free = fifo_used(&ca->free[reserve]); 454 __entry->free = fifo_used(&ca->free[reserve]);
456 __entry->free_inc = fifo_used(&ca->free_inc); 455 __entry->free_inc = fifo_used(&ca->free_inc);
457 __entry->unused = fifo_used(&ca->unused);
458 __entry->blocked = atomic_read(&ca->set->prio_blocked); 456 __entry->blocked = atomic_read(&ca->set->prio_blocked);
459 ), 457 ),
460 458
461 TP_printk("alloc fail %d,%d free %u free_inc %u unused %u blocked %u", 459 TP_printk("alloc fail %d,%d free %u free_inc %u blocked %u",
462 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->free, 460 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->free,
463 __entry->free_inc, __entry->unused, __entry->blocked) 461 __entry->free_inc, __entry->blocked)
464); 462);
465 463
466/* Background writeback */ 464/* Background writeback */