From: Frank Swiderski Date: Mon, 15 Nov 2010 18:43:22 +0000 (-0800) Subject: ecryptfs: remove unnecessary decrypt when extending a file X-Git-Tag: v2.6.38-rc1~17^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24562486be76cf223b8d911f45e1d26eb3364b13;p=pandora-kernel.git ecryptfs: remove unnecessary decrypt when extending a file 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 Signed-off-by: Tyler Hicks --- Reading git-diff-tree failed