Re: [PATCH] eCryptfs: Avoid unnecessary disk read and data decryption during writing

2012-11-07 Thread Tyler Hicks
On 2012-10-30 19:52:40, Li Wang wrote: > ecryptfs_write_begin grabs a page from page cache for writing. > If the page contains invalid data, or data older than the > counterpart on the disk, eCryptfs will read out the > corresponing data from the disk into the page, decrypt them, > then perform wri

[PATCH] eCryptfs: Avoid unnecessary disk read and data decryption during writing

2012-10-29 Thread Li Wang
ecryptfs_write_begin grabs a page from page cache for writing. If the page contains invalid data, or data older than the counterpart on the disk, eCryptfs will read out the corresponing data from the disk into the page, decrypt them, then perform writing. However, for this page, if the length of th