diff options
author | Eric Biggers <ebiggers@google.com> | 2022-12-14 14:43:03 -0800 |
---|---|---|
committer | Eric Biggers <ebiggers@google.com> | 2023-01-01 15:46:48 -0800 |
commit | 9642946c6c851ba954689f184b3370e3594b6b1a (patch) | |
tree | 2ee4051f2fb36d041f2845bcd2427d3e3231e22e /fs/verity/enable.c | |
parent | 01d90c07a592b532c7a673dfd8baa6d6e496273d (diff) |
fsverity: optimize fsverity_cleanup_inode() on non-verity files
Make fsverity_cleanup_inode() an inline function that checks for
non-NULL ->i_verity_info, then (if needed) calls
__fsverity_cleanup_inode() 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-4-ebiggers@kernel.org
Diffstat (limited to 'fs/verity/enable.c')
0 files changed, 0 insertions, 0 deletions