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

Unified Diff: fs/ecryptfs/file.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/ecryptfs_kernel.h ('k') | fs/ecryptfs/main.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fs/ecryptfs/file.c
diff --git a/fs/ecryptfs/file.c b/fs/ecryptfs/file.c
index 2ab7e2501061d89d7bbfc6962fe5bfa434f0718d..4e25328986ac7b6718df18eace61eea75693a190 100644
--- a/fs/ecryptfs/file.c
+++ b/fs/ecryptfs/file.c
@@ -275,16 +275,9 @@ static int ecryptfs_release(struct inode *inode, struct file *file)
static int
ecryptfs_fsync(struct file *file, struct dentry *dentry, int datasync)
{
- int rc = 0;
-
- rc = simple_fsync(file, dentry, datasync);
- if (rc)
- goto out;
- rc = vfs_fsync(ecryptfs_file_to_lower(file),
- ecryptfs_dentry_to_lower(dentry),
- datasync);
-out:
- return rc;
+ return vfs_fsync(ecryptfs_file_to_lower(file),
+ ecryptfs_dentry_to_lower(dentry),
+ datasync);
}
static int ecryptfs_fasync(int fd, struct file *file, int flag)
« no previous file with comments | « fs/ecryptfs/ecryptfs_kernel.h ('k') | fs/ecryptfs/main.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698