From e9e2ecf2dd7f3e09913df89b0a8d1517b9cd2bf4 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Tue, 13 Aug 2024 08:15:58 +0800 Subject: [PATCH] load `partition_map` only once --- native/src/init/mount.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/src/init/mount.cpp b/native/src/init/mount.cpp index 01512a3ec..4d547fc0b 100644 --- a/native/src/init/mount.cpp +++ b/native/src/init/mount.cpp @@ -78,7 +78,7 @@ static struct { } blk_info; static dev_t setup_block() { - const auto partition_map = load_partition_map(); + static const auto partition_map = load_partition_map(); if (dev_list.empty()) collect_devices(partition_map);