diff --git a/tools/pvck.c b/tools/pvck.c index 06fd01733..c36e18216 100644 --- a/tools/pvck.c +++ b/tools/pvck.c @@ -3064,11 +3064,11 @@ int pvck(struct cmd_context *cmd, int argc, char **argv) return ECMD_FAILED; } + label_scan_setup_bcache(); + if (dev) { char buf[4096]; - label_scan_setup_bcache(); - /* * This buf is not used, but bcache data is used for subsequent * reads in the filters and by _read_bytes for other disk structs.