Use the new ndctl_dimm_read_label_index() helper to minimize the amount of label I/O needed to execute an autolabel event.
Signed-off-by: Dan Williams <[email protected]> --- ndctl/namespace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ndctl/namespace.c b/ndctl/namespace.c index 645aa14882bb..a3963d79831a 100644 --- a/ndctl/namespace.c +++ b/ndctl/namespace.c @@ -1029,7 +1029,7 @@ retry: int num_labels, avail; ndctl_cmd_unref(cmd_read); - cmd_read = ndctl_dimm_read_labels(dimm); + cmd_read = ndctl_dimm_read_label_index(dimm); if (!cmd_read) continue; _______________________________________________ Linux-nvdimm mailing list [email protected] https://lists.01.org/mailman/listinfo/linux-nvdimm
