diff options
author | Paul Taysom <taysom@chromium.org> | 2013-05-23 14:31:43 -0700 |
---|---|---|
committer | Tyler Hicks <tyhicks@canonical.com> | 2013-05-24 16:21:45 -0700 |
commit | c15cddd900e867c5adfb3c79596479dc5975f743 (patch) | |
tree | bc9607f2d1c40850da4c247d842dd1275c1785b5 /lib | |
parent | bb3ec6b08396bbd631b6441102dd1c3d89cbc576 (diff) | |
download | op-kernel-dev-c15cddd900e867c5adfb3c79596479dc5975f743.zip op-kernel-dev-c15cddd900e867c5adfb3c79596479dc5975f743.tar.gz |
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: Paul Taysom <taysom@chromium.org>
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Cc: stable@vger.kernel.org # v3.6+
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions