Re: [PATCH 2/2] VM: invalidate_inode_pages2_range() shouldn't fail on page dirty...

2007-02-14 Thread Andrew Morton
On Mon, 12 Feb 2007 23:43:38 -0800 Trond Myklebust <[EMAIL PROTECTED]> wrote: > From: Trond Myklebust <[EMAIL PROTECTED]> > > invalidate_inode_pages2() should not try to fix races between direct_IO and > mmap(). It should only be trying to clear out pages that were dirty before > the direct_IO wr

[PATCH 2/2] VM: invalidate_inode_pages2_range() shouldn't fail on page dirty...

2007-02-12 Thread Trond Myklebust
From: Trond Myklebust <[EMAIL PROTECTED]> invalidate_inode_pages2() should not try to fix races between direct_IO and mmap(). It should only be trying to clear out pages that were dirty before the direct_IO write (see generic_file_direct_IO()). Skipping dirty pages should therefore not result in a