mm: kill vma flag VM_RESERVED and mm->reserved_vm counter
[deliverable/linux.git] / sound / core / pcm_native.c
index 20554eff5a21947fe3806902d6825534868e702e..5e12e5bacbba36cdf64c41a1d6e7e3d984902cf9 100644 (file)
@@ -3039,7 +3039,7 @@ static int snd_pcm_mmap_status(struct snd_pcm_substream *substream, struct file
                return -EINVAL;
        area->vm_ops = &snd_pcm_vm_ops_status;
        area->vm_private_data = substream;
-       area->vm_flags |= VM_RESERVED;
+       area->vm_flags |= VM_DONTEXPAND | VM_DONTDUMP;
        return 0;
 }
 
@@ -3076,7 +3076,7 @@ static int snd_pcm_mmap_control(struct snd_pcm_substream *substream, struct file
                return -EINVAL;
        area->vm_ops = &snd_pcm_vm_ops_control;
        area->vm_private_data = substream;
-       area->vm_flags |= VM_RESERVED;
+       area->vm_flags |= VM_DONTEXPAND | VM_DONTDUMP;
        return 0;
 }
 #else /* ! coherent mmap */
@@ -3170,7 +3170,7 @@ static const struct vm_operations_struct snd_pcm_vm_ops_data_fault = {
 int snd_pcm_lib_default_mmap(struct snd_pcm_substream *substream,
                             struct vm_area_struct *area)
 {
-       area->vm_flags |= VM_RESERVED;
+       area->vm_flags |= VM_DONTEXPAND | VM_DONTDUMP;
 #ifdef ARCH_HAS_DMA_MMAP_COHERENT
        if (!substream->ops->page &&
            substream->dma_buffer.dev.type == SNDRV_DMA_TYPE_DEV)
This page took 0.027038 seconds and 5 git commands to generate.