ecryptfs: remove unnecessary decrypt when extending a file
authorFrank Swiderski <fes@chromium.org>
Mon, 15 Nov 2010 18:43:22 +0000 (10:43 -0800)
committerTyler Hicks <tyhicks@linux.vnet.ibm.com>
Mon, 17 Jan 2011 19:01:25 +0000 (13:01 -0600)
Removes an unecessary page decrypt from ecryptfs_begin_write when the
page is beyond the current file size. Previously, the call to
ecryptfs_decrypt_page would result in a read of 0 bytes, but still
attempt to decrypt an entire page. This patch detects that case and
merely zeros the page before marking it up-to-date.

Signed-off-by: Frank Swiderski <fes@chromium.org>
Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>

No differences found