summaryrefslogtreecommitdiff
path: root/include/trace
diff options
context:
space:
mode:
authorColy Li <colyli@suse.de>2020-10-01 09:50:48 +0300
committerJens Axboe <axboe@kernel.dk>2020-10-02 23:25:30 +0300
commit1132e56e78e3c8f4deaf68ed760c78456a9c61f4 (patch)
tree64abfdefd468912a9b4db7ae1dfc81daa2fa4f41 /include/trace
parent08fdb2cddbdc783fecadfb606868c4498165fc30 (diff)
downloadlinux-1132e56e78e3c8f4deaf68ed760c78456a9c61f4.tar.xz
bcache: add set_uuid in struct cache_set
This patch adds a separated set_uuid[16] in struct cache_set, to store the uuid of the cache set. This is the preparation to remove the embedded struct cache_sb from struct cache_set. Signed-off-by: Coly Li <colyli@suse.de> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/bcache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/trace/events/bcache.h b/include/trace/events/bcache.h
index 0bddea663b3b..e41c611d6d3b 100644
--- a/include/trace/events/bcache.h
+++ b/include/trace/events/bcache.h
@@ -164,7 +164,7 @@ TRACE_EVENT(bcache_write,
),
TP_fast_assign(
- memcpy(__entry->uuid, c->sb.set_uuid, 16);
+ memcpy(__entry->uuid, c->set_uuid, 16);
__entry->inode = inode;
__entry->sector = bio->bi_iter.bi_sector;
__entry->nr_sector = bio->bi_iter.bi_size >> 9;
@@ -200,7 +200,7 @@ DECLARE_EVENT_CLASS(cache_set,
),
TP_fast_assign(
- memcpy(__entry->uuid, c->sb.set_uuid, 16);
+ memcpy(__entry->uuid, c->set_uuid, 16);
),
TP_printk("%pU", __entry->uuid)