eCryptfs: Remove ECRYPTFS_NEW_FILE crypt stat flag
Now that grow_file() is not called in the ecryptfs_create() path, the ECRYPTFS_NEW_FILE flag is no longer needed. It helped ecryptfs_readpage() know not to decrypt zeroes that were read from the lower file in the grow_file() path. Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
This commit is contained in:
@@ -161,7 +161,6 @@ static int ecryptfs_initialize_file(struct dentry *ecryptfs_dentry)
|
||||
crypt_stat->flags &= ~(ECRYPTFS_ENCRYPTED);
|
||||
goto out;
|
||||
}
|
||||
crypt_stat->flags |= ECRYPTFS_NEW_FILE;
|
||||
ecryptfs_printk(KERN_DEBUG, "Initializing crypto context\n");
|
||||
rc = ecryptfs_new_file_context(ecryptfs_dentry);
|
||||
if (rc) {
|
||||
|
Reference in New Issue
Block a user