* [PATCH] fscache: offer the right volume key when printing
@ 2023-02-09 3:52 Jingbo Xu
0 siblings, 0 replies; only message in thread
From: Jingbo Xu @ 2023-02-09 3:52 UTC (permalink / raw)
To: dhowells, linux-cachefs; +Cc: linux-kernel
This is a trivial fix as the first slot of volume->key[] actually stores
the length of the volume key.
Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
---
fs/fscache/cookie.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/fscache/cookie.c b/fs/fscache/cookie.c
index bce2492186d0..ea13697a8556 100644
--- a/fs/fscache/cookie.c
+++ b/fs/fscache/cookie.c
@@ -46,7 +46,7 @@ void fscache_print_cookie(struct fscache_cookie *cookie, char prefix)
pr_err("%c-cookie V=%08x [%s]\n",
prefix,
cookie->volume->debug_id,
- cookie->volume->key);
+ cookie->volume->key + 1);
k = (cookie->key_len <= sizeof(cookie->inline_key)) ?
cookie->inline_key : cookie->key;
--
2.19.1.6.gb485710b
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-09 3:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-09 3:52 [PATCH] fscache: offer the right volume key when printing Jingbo Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox