exec: Remove unnecessary RAM_FILE flag
commit2f3a2bb15e665f23c885985226c4147db4ea35db
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 6 Nov 2015 22:11:21 +0000 (6 20:11 -0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Dec 2015 14:24:34 +0000 (17 15:24 +0100)
tree3eafedd886c07a5ed8b39e683328592e1af5ca62
parentfc3e7665d7fe1b2f842441d250d7afec26b8a910
exec: Remove unnecessary RAM_FILE flag

The only code that sets RAMBlock.fd is file_ram_alloc(), and the only
code that calls file_ram_alloc() sets the RAM_FILE flag. That means the
flag is always set when RAMBlock.fd >= 0, and the munmap() call at
reclaim_ramblock() is dead code that never runs.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <1446847881-9385-1-git-send-email-ehabkost@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
exec.c