[lkml]   [2003]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 2/2] Futex non-page-pinning fix
On Wed, 27 Aug 2003, Andrew Morton wrote:
> Hugh Dickins <> wrote:
> >
> > But I disagree over move_to/from_swap_cache: nothing should
> > be done there at all. Once you have mapping,index in struct
> > futex_q, it's irrelevant what tmpfs might be doing to the
> > page->mapping,page->index of the unmapped page.
> But move_to_swap_cache() alters a page's ->mapping and ->index when that
> page is potentially mapped into user pagetables.

It'd better not: BUG_ON(page_mapped(page)) at start of shmem_writepage,
sole caller of move_to_swap_cache. Things fall apart if tmpfs pages
get reassigned to swap while they're mapped.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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