• Pavel Emelyanov's avatar
    files: Properlu count number of users for mmaped/exe-d ghost files · 490efb46
    Pavel Emelyanov authored
    If a file mmaped or pointed by exe link is unlinked, we will
    generate a ghost file for it. On restore the ghost file will
    be created with the users counter 1 and the very first open
    (e.g. for mmap) will unlink the file.
    
    Handle this by bumping up user counter for every mapping
    pointing on the file.
    
    This appeared after previous patches that packed the reg-files
    image. Before it each vma and exe link created separate entry
    in the reg-files image.
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    490efb46
fifo.c 3.83 KB