lkml.org 
[lkml]   [2009]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Fix OOPS in mmap_region() when merging adjacent VM_LOCKED file segments


On Mon, 2 Feb 2009, Mel Gorman wrote:
>
> Lets say someone does the following
>
> 1. mmap(PROT_READ, MAP_PRIVATE) on a hugetlbfs file
> VM_ACCOUNT is not set for hugetlbfs
> VM_NORESERVE is not set because MAP_NORESERVE was not there

But isn't this exactly the thing that we have that odd "accountable" flag
for, and we do the whole

if (!accountable)
vm_flags |= VM_NORESERVE;

in mmap_region() for?

So VM_NORESERVE _will_ be set.

Linus


\
 
 \ /
  Last update: 2009-02-02 23:17    [W:0.083 / U:0.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site