verify: add comment for inode sorting

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-04-14 12:55:49 +02:00
parent c894909e17
commit 2ab12cd0cb

View File

@ -205,6 +205,7 @@ fn verify_index_chunks(
}
}
// sorting by inode improves data locality, which makes it lots faster on spinners
chunk_list.sort_unstable_by(|(_, ino_a), (_, ino_b)| ino_a.cmp(&ino_b));
for (pos, _) in chunk_list {