Re: BUG at mm/filemap.c:1749 (2.6.24, jffs2, unionfs)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nick Piggin
Date: Friday, October 19, 2007 - 12:16 am

On Friday 19 October 2007 17:03, Nick Piggin wrote:

Hmm, looks like jffs2_write_end is writing more than we actually ask it
to, and returns that back.

        unsigned aligned_start = start & ~3;

and

        if (end == PAGE_CACHE_SIZE) {
                /* When writing out the end of a page, write out the
                   _whole_ page. This helps to reduce the number of
                   nodes in files which have many short writes, like
                   syslog files. */
                start = aligned_start = 0;
        }

These "longer" writes are fine, but they shouldn't get propagated back
to the vm/vfs. Something like the following patch might fix it.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
BUG at mm/filemap.c:1749 (2.6.24, jffs2, unionfs), Erez Zadok, (Thu Oct 18, 11:05 pm)
Re: BUG at mm/filemap.c:1749 (2.6.24, jffs2, unionfs), Nick Piggin, (Fri Oct 19, 12:03 am)
Re: BUG at mm/filemap.c:1749 (2.6.24, jffs2, unionfs), Nick Piggin, (Fri Oct 19, 12:16 am)
Re: BUG at mm/filemap.c:1749 (2.6.24, jffs2, unionfs) , Erez Zadok, (Fri Oct 19, 10:38 am)
Re: BUG at mm/filemap.c:1749 (2.6.24, jffs2, unionfs), David Woodhouse, (Sat Oct 20, 6:16 am)
Re: BUG at mm/filemap.c:1749 (2.6.24, jffs2, unionfs), David Woodhouse, (Sun Oct 21, 1:55 am)
Re: BUG at mm/filemap.c:1749 (2.6.24, jffs2, unionfs), Nick Piggin, (Sun Oct 21, 2:57 am)