diff options
author | Eric Biggers <ebiggers@google.com> | 2022-12-14 14:43:01 -0800 |
---|---|---|
committer | Eric Biggers <ebiggers@google.com> | 2023-01-01 15:46:48 -0800 |
commit | a6528a960b78715d4c3d2c9cda85714b15a0faa4 (patch) | |
tree | 3541aba216f638942ae2bca7667397efdb4a412a /fs/btrfs/verity.c | |
parent | 88603b6dc419445847923fcb7fe5080067a30f98 (diff) |
fsverity: optimize fsverity_file_open() on non-verity files
Make fsverity_file_open() an inline function that does the IS_VERITY()
check, then (if needed) calls __fsverity_file_open() to do the real
work. This reduces the overhead on non-verity files.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Acked-by: Dave Chinner <dchinner@redhat.com>
Link: https://lore.kernel.org/r/20221214224304.145712-2-ebiggers@kernel.org
Diffstat (limited to 'fs/btrfs/verity.c')
0 files changed, 0 insertions, 0 deletions