mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 10:07:52 +00:00
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: 75a323e604 ("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]>