From: Paul Taysom Date: Thu, 23 May 2013 21:31:43 +0000 (-0700) Subject: ecryptfs: fixed msync to flush data X-Git-Tag: v3.10-rc5~13^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c15cddd900e867c5adfb3c79596479dc5975f743;p=pandora-kernel.git 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 Signed-off-by: Tyler Hicks Cc: stable@vger.kernel.org # v3.6+ --- Reading git-diff-tree failed