jffs2_flash_writev(): Non-contiguous write to 00825300 with mtd_dataflash

Artem Bityutskiy dedekind at infradead.org
Mon Nov 13 02:46:49 EST 2006


Hello Haavard,

On Wed, 2006-11-01 at 11:52 +0100, Haavard Skinnemoen wrote:
> I've seen a couple of other people reporting this bug before, so I'm
> just going to offer some observations I've made when trying to debug
> this (I'm not a filesystem developer, so I don't fully understand the
> code).
> 
> I can successfully mount a jffs2 filesystem on a freshly erased
> AT45DB642x DataFlash chip through the mtd_dataflash driver. However,
> when trying to write something to a file on that filesystem, I get a
> BUG and the messages
> 
> jffs2_flash_writev(): Non-contiguous write to 00825300
> wbuf was previously 00825300-008253b8
> 
> Just creating a file without trying to write anything to it works fine.
> 
> I've inserted a call to dump_stack() and a few debugging printks in
> jffs2_flash_writev() to see what's going on, and I see the following:

So all it seems that you need to to make jffs2_can_mark_obsokete()
return 0 in case of dataflash.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)





More information about the linux-mtd mailing list