mm: fix XIP file writes
authorNick Piggin <npiggin@suse.de>
Wed, 5 Dec 2007 07:45:25 +0000 (23:45 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 5 Dec 2007 17:21:20 +0000 (09:21 -0800)
commit369b8f5a70402d9fe77006cd0044c8a3fcd08430
tree7796820d04e7278b37e5dadeda65fe3579dd4ab2
parent4670df831cb479ba57dd0fa0b8a9eb88cc7129be
mm: fix XIP file writes

Writing to XIP files at a non-page-aligned offset results in data corruption
because the writes were always sent to the start of the page.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/filemap_xip.c