From: Nick Piggin Date: Fri, 19 Oct 2007 07:16:53 +0000 (+1000) Subject: [JFFS2] Fix return value from jffs2_write_end() X-Git-Tag: v2.6.24-rc1~32^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a754b51aacb122cec25c849e3cf7f5503cc3ec6;p=pandora-kernel.git [JFFS2] Fix return value from jffs2_write_end() jffs2_write_end() is sometimes passing back a "written" length greater than the length we passed into it, leading to a BUG at mm/filemap.c:1749 when used with unionfs. It happens because we actually write more than was requested, to reduce log fragmentation. These "longer" writes are fine, but they shouldn't get propagated back to the vm/vfs. Signed-off-by: Nick Piggin Signed-off-by: David Woodhouse --- Reading git-diff-tree failed