diff options
author | Mateusz Guzik <[email protected]> | 2024-08-06 15:36:07 +0200 |
---|---|---|
committer | Mimi Zohar <[email protected]> | 2024-10-09 22:49:40 -0400 |
commit | 699ae6241920b0fa837fa57e61f7d5b0e2e65b58 (patch) | |
tree | b99ff2c7fe9901af26c9381c16689731432170e6 /lib/memory-notifier-error-inject.c | |
parent | 923168a0631bc42fffd55087b337b1b6c54dcff5 (diff) |
evm: stop avoidably reading i_writecount in evm_file_release
The EVM_NEW_FILE flag is unset if the file already existed at the time
of open and this can be checked without looking at i_writecount.
Not accessing it reduces traffic on the cacheline during parallel open
of the same file and drop the evm_file_release routine from second place
to bottom of the profile.
Fixes: 75a323e604fc ("evm: Make it independent from 'integrity' LSM")
Signed-off-by: Mateusz Guzik <[email protected]>
Reviewed-by: Roberto Sassu <[email protected]>
Cc: [email protected] # 6.9+
Signed-off-by: Mimi Zohar <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions