diff mbox series

[ndctl,v4,5/7] ndctl/namespace: Minimize label data transfer for autolabel

Message ID 156504774979.847544.9812989036686411087.stgit@dwillia2-desk3.amr.corp.intel.com (mailing list archive)
State Superseded
Commit 22f17815b28319de382bb3185125c34c9b07181f
Headers show
Series Improvements for namespace creation/interrogation | expand

Commit Message

Dan Williams Aug. 5, 2019, 11:29 p.m. UTC
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 <dan.j.williams@intel.com>
---
 ndctl/namespace.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/ndctl/namespace.c b/ndctl/namespace.c
index a654460ce4c5..26d03358c80d 100644
--- a/ndctl/namespace.c
+++ b/ndctl/namespace.c
@@ -997,7 +997,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;