[linux-cifs-client] Re: readahead not being thrown away by
invalidate_inode_pages in 2.4
Andrew Morton
akpm at osdl.org
Mon Feb 23 19:41:11 GMT 2004
Andreas Dilger <adilger at clusterfs.com> wrote:
>
> > (Delayed response)
> >
> > invalidate_inode_pages() is just best-effort. If pages are currently under
> > I/O then they will not be invalidated.
> >
> > You will probably have some success with
> >
> > down(i_sem)
> > filemap_fdatasync()
> > filemap_fdatawait()
> > invalidate_inode_pages()
> > up(i_sem)
>
> What about truncate_inode_pages(inode, 0)?
If someone is mmapping those pages they'll end up with anonymous pages
where they thought they had pagecache.
More information about the linux-cifs-client
mailing list