diff mbox series

[4/5] libxfs: also query log device topology in get_topology

Message ID 171029433272.2063634.1143746697069724234.stgit@frogsfrogsfrogs (mailing list archive)
State Superseded
Headers show
Series [1/5] libxfs: remove the unused fs_topology_t typedef | expand

Commit Message

Darrick J. Wong March 13, 2024, 2:12 a.m. UTC
From: Christoph Hellwig <hch@lst.de>

Also query the log device topology in get_topology, which we'll need
in mkfs in a bit.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
---
 libxfs/topology.c |    1 +
 libxfs/topology.h |    1 +
 2 files changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/libxfs/topology.c b/libxfs/topology.c
index 3a659c2627c7..9d34235d0f57 100644
--- a/libxfs/topology.c
+++ b/libxfs/topology.c
@@ -326,4 +326,5 @@  get_topology(
 {
 	get_device_topology(&xi->data, &ft->data, force_overwrite);
 	get_device_topology(&xi->rt, &ft->rt, force_overwrite);
+	get_device_topology(&xi->log, &ft->log, force_overwrite);
 }
diff --git a/libxfs/topology.h b/libxfs/topology.h
index ba0c8f6696a7..fa0a23b77386 100644
--- a/libxfs/topology.h
+++ b/libxfs/topology.h
@@ -20,6 +20,7 @@  struct device_topology {
 struct fs_topology {
 	struct device_topology	data;
 	struct device_topology	rt;
+	struct device_topology	log;
 };
 
 void