Only the first event of file modification is submitted between the open and the close of a file by a process.
This is to reduce the amount of file modification events on a file which might be a lot.
That means that the event is not submitted for each write to the file.
The file_modification event could be submitted more than once between the open and the close of a file by a process.
This is due to the use of an LRU map, which acts as a cache of files that the event should be submitted on.
Entries of the map are evicted when it is full, thus information about whether an event should be submitted for a
specific file might be lost, and a new event would be submitted even though such an event was submitted before.