From: Tyler Hicks Date: Mon, 21 Nov 2011 23:31:29 +0000 (-0600) Subject: eCryptfs: Flush file in vma close X-Git-Tag: v3.2-rc3~4^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32001d6f;p=pandora-kernel.git eCryptfs: Flush file in vma close Dirty pages weren't being written back when an mmap'ed eCryptfs file was closed before the mapping was unmapped. Since f_ops->flush() is not called by the munmap() path, the lower file was simply being released. This patch flushes the eCryptfs file in the vm_ops->close() path. https://launchpad.net/bugs/870326 Signed-off-by: Tyler Hicks Cc: stable@kernel.org [2.6.39+] --- Reading git-diff-tree failed