ubifs: find.c: replace swap function with built-in one
authorAndrey Abramov <st5pub@yandex.ru>
Tue, 2 Apr 2019 20:52:10 +0000 (23:52 +0300)
committerRichard Weinberger <richard@nod.at>
Tue, 7 May 2019 19:58:29 +0000 (21:58 +0200)
commit257bb92420d63c4d38da4cf0ae9a0b61ac985eca
treeb476c4a7128121424c4162240393fd553e3922dc
parente9cd7dfd7ef939394436ef6d03ff156e587ba39e
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: Andrey Abramov <st5pub@yandex.ru>
Reviewed by: George Spelvin <lkml@sdf.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/find.c