Commit 3d55b9d1 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

dump: Drop VMA_DUMP_ALL flag

It has been used at very early stage when
no mincore call was implemented. Not needed
anymore -- so drop it out.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
parent 42a661f5
......@@ -73,7 +73,6 @@ struct vma_entry {
#define VMA_FILE_SHARED (1 << 7)
#define VMA_ANON_SHARED (1 << 8)
#define VMA_ANON_PRIVATE (1 << 9)
#define VMA_DUMP_ALL (1 << 10) /* Dump the whole VMA area pages */
#define vma_entry_is(vma, s) (((vma)->status & (s)) == (s))
#define vma_entry_len(vma) ((vma)->end - (vma)->start)
......
......@@ -79,15 +79,12 @@ static void sys_write_msg(const char *msg)
static inline int should_dump_page(struct vma_entry *vmae, unsigned char mincore_flags)
{
#ifdef PAGE_ANON
if (vma_entry_is(vmae, VMA_DUMP_ALL))
return 1;
if (vma_entry_is(vmae, VMA_FILE_PRIVATE))
return mincore_flags & PAGE_ANON;
else
return mincore_flags & PAGE_RSS;
#else
return (mincore_flags & PAGE_RSS) || vma_entry_is(vmae, VMA_DUMP_ALL);
return (mincore_flags & PAGE_RSS);
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment