Skip to content
Commit 257bb924 authored by Andrey Abramov's avatar Andrey Abramov Committed by Richard Weinberger
Browse files

ubifs: find.c: replace swap function with built-in one



Replace swap_dirty_idx function with built-in one,
because swap_dirty_idx does only a simple byte to byte swap.

Since Spectre mitigations have made indirect function calls more
expensive, and the default simple byte copies swap is implemented
without them, an "optimized" custom swap function is now
a waste of time as well as code.

Signed-off-by: default avatarAndrey Abramov <st5pub@yandex.ru>
Reviewed by: George Spelvin <lkml@sdf.org>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent e9cd7dfd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment