Re: 2.6.26-rc5-mm2

Rik van Riel
2008-06-12T19:29:25Z

On Thu, 12 Jun 2008 09:58:38 +1000
Nick Piggin <nickpiggin@yahoo.com.au> wrote:

> > Does loopback over tmpfs use a different allocation path?
>
> I'm sorry, hmm I didn't look closely enough and forgot that
> write_begin/write_end requires the callee to allocate the page
> as well, and that Hugh had nicely unified most of that.
>
> So maybe it's not that. It's pretty easy to hit I found with
> ext2 mounted over loopback on a tmpfs file.

Turns out the loopback driver uses splice, which moves
the pages from one place to another. This is why you
were seeing the problem with loopback, but not with
just a really big file on tmpfs.

I'm trying to make sense of all the splice code now
and will send fix as soon as I know how to fix this
problem in a nice way.

--
All Rights Reversed