Re: [PATCH] cramfs corruption after BLKFLSBUF on loop device

Chris Mason
2006-06-01T20:29:26Z

On Thursday 01 June 2006 16:20, Olaf Hering wrote:
> On Thu, Jun 01, Chris Mason wrote:
> > I think this will work (but have not tested it). Another option is to
> > create a read_cache_page that pins the page via a page flag
> > that invalidate_mapping_pages will honor.
>
> PageLocked or PageDirty, the latter only with a mb().

The problem is we need the bit to be set before we set the page up to date. A
locked page will never make it through the readpage() mechanisms and a dirty
page that isn't up to date is not quite legal.

For cramfs, dirty would work I suppose.

-chris