Skip to content

Commit

Permalink
Merge tag 'ecryptfs-3.10-rc5-msync' of git://git.kernel.org/pub/scm/l…
Browse files Browse the repository at this point in the history
…inux/kernel/git/tyhicks/ecryptfs

Pull ecryptfs fixes from Tyler Hicks:
 - Fixes how eCryptfs handles msync to sync both the upper and lower
   file
 - A couple of MAINTAINERS updates

* tag 'ecryptfs-3.10-rc5-msync' of git://git.kernel.org/pub/scm/linux/kernel/git/tyhicks/ecryptfs:
  eCryptfs: Check return of filemap_write_and_wait during fsync
  Update eCryptFS maintainers
  ecryptfs: fixed msync to flush data
  • Loading branch information
Linus Torvalds committed Jun 7, 2013
2 parents e432785 + bc5abcf commit b8e9dba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -2890,8 +2890,8 @@ F: drivers/media/dvb-frontends/ec100*

ECRYPT FILE SYSTEM
M: Tyler Hicks <tyhicks@canonical.com>
M: Dustin Kirkland <dustin.kirkland@gazzang.com>
L: ecryptfs@vger.kernel.org
W: http://ecryptfs.org
W: https://launchpad.net/ecryptfs
S: Supported
F: Documentation/filesystems/ecryptfs.txt
Expand Down
6 changes: 6 additions & 0 deletions fs/ecryptfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,12 @@ static int ecryptfs_release(struct inode *inode, struct file *file)
static int
ecryptfs_fsync(struct file *file, loff_t start, loff_t end, int datasync)
{
int rc;

rc = filemap_write_and_wait(file->f_mapping);
if (rc)
return rc;

return vfs_fsync(ecryptfs_file_to_lower(file), datasync);
}

Expand Down

0 comments on commit b8e9dba

Please sign in to comment.