fscache: offer the right volume key when printing
PATCH 1/1 fscache: offer the right volume key when printing
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 <[email protected]>
--- fs/fscache/cookie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/fscache/cookie.c +1 -1
@@ -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;
Signature · 1 line
2.19.1.6.gb485710b