Skip to content
Commit 32001d6f authored by Tyler Hicks's avatar Tyler Hicks
Browse files

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: default avatarTyler Hicks <tyhicks@canonical.com>
Cc: stable@kernel.org [2.6.39+]
parent b59db43a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment