diff options
| author | Kent Overstreet <kmo@daterainc.com> | 2013-09-10 22:02:45 -0400 |
|---|---|---|
| committer | Kent Overstreet <kmo@daterainc.com> | 2013-11-11 00:56:32 -0500 |
| commit | 220bb38c21b83e2f7b842f33220bf727093eca89 (patch) | |
| tree | 7388a855ca920ca88c0b9a4d66839946ba4cd848 /include/trace | |
| parent | cc7b8819212f437fc82f0f9cdc24deb0fb5d775f (diff) | |
bcache: Break up struct search
With all the recent refactoring around struct btree op struct search has
gotten rather large.
But we can now easily break it up in a different way - we break out
struct btree_insert_op which is for inserting data into the cache, and
that's now what the copying gc code uses - struct search is now specific
to request.c
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Diffstat (limited to 'include/trace')
| -rw-r--r-- | include/trace/events/bcache.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/include/trace/events/bcache.h b/include/trace/events/bcache.h index 5ebda976ea93..32c89b33c391 100644 --- a/include/trace/events/bcache.h +++ b/include/trace/events/bcache.h | |||
| @@ -6,11 +6,9 @@ | |||
| 6 | 6 | ||
| 7 | #include <linux/tracepoint.h> | 7 | #include <linux/tracepoint.h> |
| 8 | 8 | ||
| 9 | struct search; | ||
| 10 | |||
| 11 | DECLARE_EVENT_CLASS(bcache_request, | 9 | DECLARE_EVENT_CLASS(bcache_request, |
| 12 | TP_PROTO(struct search *s, struct bio *bio), | 10 | TP_PROTO(struct bcache_device *d, struct bio *bio), |
| 13 | TP_ARGS(s, bio), | 11 | TP_ARGS(d, bio), |
| 14 | 12 | ||
| 15 | TP_STRUCT__entry( | 13 | TP_STRUCT__entry( |
| 16 | __field(dev_t, dev ) | 14 | __field(dev_t, dev ) |
| @@ -24,8 +22,8 @@ DECLARE_EVENT_CLASS(bcache_request, | |||
| 24 | 22 | ||
| 25 | TP_fast_assign( | 23 | TP_fast_assign( |
| 26 | __entry->dev = bio->bi_bdev->bd_dev; | 24 | __entry->dev = bio->bi_bdev->bd_dev; |
| 27 | __entry->orig_major = s->d->disk->major; | 25 | __entry->orig_major = d->disk->major; |
| 28 | __entry->orig_minor = s->d->disk->first_minor; | 26 | __entry->orig_minor = d->disk->first_minor; |
| 29 | __entry->sector = bio->bi_sector; | 27 | __entry->sector = bio->bi_sector; |
| 30 | __entry->orig_sector = bio->bi_sector - 16; | 28 | __entry->orig_sector = bio->bi_sector - 16; |
| 31 | __entry->nr_sector = bio->bi_size >> 9; | 29 | __entry->nr_sector = bio->bi_size >> 9; |
| @@ -79,13 +77,13 @@ DECLARE_EVENT_CLASS(btree_node, | |||
| 79 | /* request.c */ | 77 | /* request.c */ |
| 80 | 78 | ||
| 81 | DEFINE_EVENT(bcache_request, bcache_request_start, | 79 | DEFINE_EVENT(bcache_request, bcache_request_start, |
| 82 | TP_PROTO(struct search *s, struct bio *bio), | 80 | TP_PROTO(struct bcache_device *d, struct bio *bio), |
| 83 | TP_ARGS(s, bio) | 81 | TP_ARGS(d, bio) |
| 84 | ); | 82 | ); |
| 85 | 83 | ||
| 86 | DEFINE_EVENT(bcache_request, bcache_request_end, | 84 | DEFINE_EVENT(bcache_request, bcache_request_end, |
| 87 | TP_PROTO(struct search *s, struct bio *bio), | 85 | TP_PROTO(struct bcache_device *d, struct bio *bio), |
| 88 | TP_ARGS(s, bio) | 86 | TP_ARGS(d, bio) |
| 89 | ); | 87 | ); |
| 90 | 88 | ||
| 91 | DECLARE_EVENT_CLASS(bcache_bio, | 89 | DECLARE_EVENT_CLASS(bcache_bio, |
