]> err.no Git - linux-2.6/commit
zero out last page for llseek/write
authorMichael Halcrow <mhalcrow@us.ibm.com>
Wed, 27 Jun 2007 21:09:45 +0000 (14:09 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 28 Jun 2007 18:34:53 +0000 (11:34 -0700)
commitd4c5cdb3e099da7cc64df622b02ff7659babe16e
tree2d1662e51e62b8881f386aa79474d7add3db7bca
parente10f281bca03f45bdec91e67645c394eaec2f8f6
zero out last page for llseek/write

When one llseek's past the end of the file and then writes, every page past
the previous end of the file should be cleared.  Trevor found that the code,
as is, does not assure that the very last page is always cleared.  This patch
takes care of that.

Signed-off-by: Michael Halcrow <mhalcrow@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ecryptfs/mmap.c