lkml.org 
[lkml]   [1996]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: mmap()'d file contents disappear


On Fri, 26 Apr 1996, TANAKA Yoshitomo wrote:
>
> I am confused by mmap()'d file contents disappearance.

Thank you for the very nice explanation on when you see the file mmap
info disappearing: this was a rather subtle bug..

It _should_ be fixed with this very simple patch:

In the file linux/mm/filemap.c, function filemap_sync(), there is a line
that says:

dir = pgd_offset(current->mm, address);

but it should be

dir = pgd_offset(vma->vm_mm, address);

(ie change "current->mm" into "vma->vm_mm"). Does that fix the problem
for you?

Linus


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.075 / U:0.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site