From: Thieu Le Date: Wed, 9 Mar 2011 00:26:03 +0000 (-0800) Subject: ecryptfs: modify write path to encrypt page in writepage X-Git-Tag: v2.6.39-rc1~18^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57db4e8d73ef2b5e94a3f412108dff2576670a8a;p=pandora-kernel.git ecryptfs: modify write path to encrypt page in writepage Change the write path to encrypt the data only when the page is written to disk in ecryptfs_writepage. Previously, ecryptfs encrypts the page in ecryptfs_write_end which means that if there are multiple write requests to the same page, ecryptfs ends up re-encrypting that page over and over again. This patch minimizes the number of encryptions needed. Signed-off-by: Thieu Le [tyhicks: Changed NULL .drop_inode sop pointer to generic_drop_inode] Signed-off-by: Tyler Hicks --- Reading git-diff-tree failed