diff mbox series

[08/11] btrfs-progs: metadata_uuid: remove old logic to find fs_devices

Message ID 20191212110204.11128-9-Damenly_Su@gmx.com (mailing list archive)
State New, archived
Headers show
Series btrfs-progs: metadata_uuid feature fixes and portation | expand

Commit Message

Su Yue Dec. 12, 2019, 11:02 a.m. UTC
From: Su Yue <Damenly_Su@gmx.com>

Now, the new code for finding fs_devices should work, remove
those old logic.

Signed-off-by: Su Yue <Damenly_Su@gmx.com>
---
 volumes.c | 6 ------
 1 file changed, 6 deletions(-)
diff mbox series

Patch

diff --git a/volumes.c b/volumes.c
index 94940dd82d0f..9d76f9a102b2 100644
--- a/volumes.c
+++ b/volumes.c
@@ -371,12 +371,6 @@  static int device_list_add(const char *path,
 		fs_devices = find_fsid_changing(disk_super);
 	}
 
-	if (metadata_uuid && !fs_devices)
-		fs_devices = find_fsid(disk_super->fsid,
-				       disk_super->metadata_uuid);
-	else
-		fs_devices = find_fsid(disk_super->fsid, NULL);
-
 	if (!fs_devices) {
 		fs_devices = kzalloc(sizeof(*fs_devices), GFP_NOFS);
 		if (!fs_devices)