diff options
author | Tyler Hicks <tyhicks@linux.vnet.ibm.com> | 2011-02-23 07:54:20 +0100 |
---|---|---|
committer | Tyler Hicks <tyhicks@linux.vnet.ibm.com> | 2011-03-28 08:47:44 +0200 |
commit | fed8859b3ab94274c986cbdf7d27130e0545f02c (patch) | |
tree | 01d36d5f87469aa25a7431e0b21ff86b7e524052 /fs/ecryptfs/inode.c | |
parent | eCryptfs: Remove unnecessary grow_file() function (diff) | |
download | linux-fed8859b3ab94274c986cbdf7d27130e0545f02c.tar.xz linux-fed8859b3ab94274c986cbdf7d27130e0545f02c.zip |
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>
Diffstat (limited to 'fs/ecryptfs/inode.c')
-rw-r--r-- | fs/ecryptfs/inode.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c index 8fa365acb789..f99051b7adab 100644 --- a/fs/ecryptfs/inode.c +++ b/fs/ecryptfs/inode.c @@ -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) { |