Skip to content
Commit 24562486 authored by Frank Swiderski's avatar Frank Swiderski Committed by Tyler Hicks
Browse files

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: default avatarFrank Swiderski <fes@chromium.org>
Signed-off-by: default avatarTyler Hicks <tyhicks@linux.vnet.ibm.com>
parent f24b3887
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment