Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(669)

Unified Diff: fs/ecryptfs/main.c

Issue 6720011: Revert "ecryptfs: modify write path to encrypt page in writepage" (Closed) Base URL: http://git.chromium.org/git/kernel.git@master
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fs/ecryptfs/file.c ('k') | fs/ecryptfs/mmap.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fs/ecryptfs/main.c
diff --git a/fs/ecryptfs/main.c b/fs/ecryptfs/main.c
index 3569e6d47a7cbc2110683d5b2daca7c8e04fa0d7..c6ac85d6c701f5b7d82e069c9a3f82a67a51d0b3 100644
--- a/fs/ecryptfs/main.c
+++ b/fs/ecryptfs/main.c
@@ -122,6 +122,7 @@ int ecryptfs_init_persistent_file(struct dentry *ecryptfs_dentry)
int opened_lower_file = 0;
int rc = 0;
+ mutex_lock(&inode_info->lower_file_mutex);
if (!inode_info->lower_file) {
struct dentry *lower_dentry;
struct vfsmount *lower_mnt =
@@ -138,6 +139,7 @@ int ecryptfs_init_persistent_file(struct dentry *ecryptfs_dentry)
} else
opened_lower_file = 1;
}
+ mutex_unlock(&inode_info->lower_file_mutex);
if (opened_lower_file)
ima_counts_get(inode_info->lower_file);
return rc;
« no previous file with comments | « fs/ecryptfs/file.c ('k') | fs/ecryptfs/mmap.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698