Skip to content
Commit 2a754b51 authored by Nick Piggin's avatar Nick Piggin Committed by David Woodhouse
Browse files

[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: default avatarNick Piggin <npiggin@suse.de>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent c21f900c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment