mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 07:22:34 +00:00
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 <[email protected]> Signed-off-by: Tyler Hicks <[email protected]>