summaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/debug.c
diff options
context:
space:
mode:
authorColy Li <colyli@suse.de>2020-10-01 14:50:48 +0800
committerJens Axboe <axboe@kernel.dk>2020-10-02 14:25:30 -0600
commit1132e56e78e3c8f4deaf68ed760c78456a9c61f4 (patch)
tree64abfdefd468912a9b4db7ae1dfc81daa2fa4f41 /drivers/md/bcache/debug.c
parent08fdb2cddbdc783fecadfb606868c4498165fc30 (diff)
downloadlinux-stable-1132e56e78e3c8f4deaf68ed760c78456a9c61f4.tar.gz
linux-stable-1132e56e78e3c8f4deaf68ed760c78456a9c61f4.tar.bz2
linux-stable-1132e56e78e3c8f4deaf68ed760c78456a9c61f4.zip
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 'drivers/md/bcache/debug.c')
-rw-r--r--drivers/md/bcache/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/debug.c b/drivers/md/bcache/debug.c
index 336f43910383..0ccc1b0baa42 100644
--- a/drivers/md/bcache/debug.c
+++ b/drivers/md/bcache/debug.c
@@ -238,7 +238,7 @@ void bch_debug_init_cache_set(struct cache_set *c)
if (!IS_ERR_OR_NULL(bcache_debug)) {
char name[50];
- snprintf(name, 50, "bcache-%pU", c->sb.set_uuid);
+ snprintf(name, 50, "bcache-%pU", c->set_uuid);
c->debug = debugfs_create_file(name, 0400, bcache_debug, c,
&cache_set_debug_ops);
}