[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1256171635.6809.6.camel@heimdal.trondhjem.org>
Date: Wed, 21 Oct 2009 20:33:55 -0400
From: Trond Myklebust <trond.myklebust@....uio.no>
To: Peng Tao <lkml.bergwolf@...il.com>
Cc: linux-kernel@...r.kernel.org
Subject: Re: Question about invalidate_inode_pages2_range()
On Wed, 2009-10-21 at 12:08 +0800, Peng Tao wrote:
> On Tue, Oct 20, 2009 at 1:25 PM, Trond Myklebust
> <trond.myklebust@....uio.no> wrote:
> > On Mon, 2009-10-19 at 16:38 +0800, Peng Tao wrote:
> >> 2. Is there any interface in the mm subsystem forces discarding a page cache?
> >
> > You mean that also discards dirty pages? Yes. That is what
> > truncate_inode_pages() does...
> But truncate_inode_pages() truncates all pages beyond lstart.
> Is there any way to discard a single page?
> truncate_inode_page() seems to be able to do the magic. But it is not exported.
truncate_inode_pages_range() is your friend...
Cheers
Trond
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists