Skip to content
Commit c15cddd9 authored by Paul Taysom's avatar Paul Taysom Committed by Tyler Hicks
Browse files

ecryptfs: fixed msync to flush data

When msync is called on a memory mapped file, that
data is not flushed to the disk.

In Linux, msync calls fsync for the file. For ecryptfs,
fsync just calls the lower level file system's fsync.
Changed the ecryptfs fsync code to call filemap_write_and_wait
before calling the lower level fsync.

Addresses the problem described in http://crbug.com/239536



Signed-off-by: default avatarPaul Taysom <taysom@chromium.org>
Signed-off-by: default avatarTyler Hicks <tyhicks@canonical.com>
Cc: stable@vger.kernel.org # v3.6+
parent bb3ec6b0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment