Commit 699ae62
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: 75a323e ("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]>1 parent 923168a commit 699ae62
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1084 | 1084 | | |
1085 | 1085 | | |
1086 | 1086 | | |
1087 | | - | |
| 1087 | + | |
| 1088 | + | |
1088 | 1089 | | |
1089 | 1090 | | |
1090 | 1091 | | |
| |||
0 commit comments