Skip to content
Commit 57db4e8d authored by Thieu Le's avatar Thieu Le Committed by Tyler Hicks
Browse files

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: default avatarThieu Le <thieule@chromium.org>
[tyhicks: Changed NULL .drop_inode sop pointer to generic_drop_inode]
Signed-off-by: default avatarTyler Hicks <tyhicks@linux.vnet.ibm.com>
parent fed8859b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment