Home
last modified time | relevance | path

Searched hist:"792732 d9852c0e4505aceff4631ea2168fd02480" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/md/bcache/
H A Dsuper.cdiff 792732d9852c0e4505aceff4631ea2168fd02480 Wed Apr 24 11:48:29 CDT 2019 Geliang Tang <geliangtang@gmail.com> bcache: use kmemdup_nul for CACHED_LABEL buffer

This patch uses kmemdup_nul to create a NUL-terminated string from
dc->sb.label. This is better than open coding it.

With this, we can move env[2] initialization into env[] array to make
code more elegant.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>