diff mbox series

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

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

Commit Message

Dan Williams Aug. 6, 2019, 12:09 a.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;