landlock: Optimize the number of calls to get_access_mask slightly
authorGünther Noack <gnoack@google.com>
Fri, 8 Dec 2023 15:51:15 +0000 (16:51 +0100)
committerMickaël Salaün <mic@digikod.net>
Wed, 3 Jan 2024 11:43:17 +0000 (12:43 +0100)
commit0daaa610c8e033cdfb420db728c2b40eb3a75134
tree70dfc253cdc5bfbec4838d8ec5d5ec3bde72f175
parentb838dd7612f80b75e4363599f7a0d743011dd0d4
landlock: Optimize the number of calls to get_access_mask slightly

This call is now going through a function pointer,
and it is not as obvious any more that it will be inlined.

Signed-off-by: Günther Noack <gnoack@google.com>
Link: https://lore.kernel.org/r/20231208155121.1943775-4-gnoack@google.com
Fixes: 7a11275c3787 ("landlock: Refactor layer helpers")
Signed-off-by: Mickaël Salaün <mic@digikod.net>
security/landlock/ruleset.c