I just took another look at the patch a realized I wasn't freeing the multiple pages allocated with ecryptfs_get_zeroed_pages(). I also realized that neither of the ecryptfs_write_metadata_to_*() functions were using the crypt_stat, so I removed those function params.
I'm attaching an updated patch that also has a slightly more descriptive commit message.
I just took another look at the patch a realized I wasn't freeing the multiple pages allocated with ecryptfs_ get_zeroed_ pages() . I also realized that neither of the ecryptfs_ write_metadata_ to_*() functions were using the crypt_stat, so I removed those function params.
I'm attaching an updated patch that also has a slightly more descriptive commit message.