]> git.ipfire.org Git - thirdparty/systemd.git/commit
mount-util: reorder a few things
authorLennart Poettering <lennart@poettering.net>
Wed, 24 Mar 2021 12:56:55 +0000 (13:56 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 7 May 2021 09:57:34 +0000 (11:57 +0200)
commit2a613cd68f8d5b6dd7c36c613db9aef5c8ec904e
treea085b3b487af8ee34a0fee60cc319f19f7169a33
parentca7bd6183c2d0e88289725a5e516072be6d7dade
mount-util: reorder a few things

Let's always query one property, check it, and then query the next,
preferring "cheap" ones over "slow" ones (i.e. cheap are the ones we can
check directly, and slow are the ones we need to check with some loop of
some kind).

(cherry picked from commit d6bfab118d2e7c4c07566718175f4f7ec7a2387b)
src/shared/mount-util.c