commit | 32001d6fe9ac6b0423e674a3093aa56740849f3b | [log] [tgz] |
---|---|---|
author | Tyler Hicks <tyhicks@canonical.com> | Mon Nov 21 17:31:29 2011 -0600 |
committer | Tyler Hicks <tyhicks@canonical.com> | Wed Nov 23 15:40:09 2011 -0600 |
tree | 97517bbe44089da7d33a6cc715f835e2adc9ddea | |
parent | b59db43ad4434519feb338eacb01d77eb50825c5 [diff] |
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 <tyhicks@canonical.com> Cc: stable@kernel.org [2.6.39+]