lkml.org 
[lkml]   [2006]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
FromChris Mason <>
SubjectRe: [PATCH] cramfs corruption after BLKFLSBUF on loop device
DateThu, 1 Jun 2006 16:29:19 -0400
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-06-01 22:31    [from the cache]
©2003-2010