]> git.baikalelectronics.ru Git - kernel.git/commit
eCryptfs: Flush file in vma close
authorTyler Hicks <tyhicks@canonical.com>
Mon, 21 Nov 2011 23:31:29 +0000 (17:31 -0600)
committerTyler Hicks <tyhicks@canonical.com>
Wed, 23 Nov 2011 21:40:09 +0000 (15:40 -0600)
commitdf3e6a8df6018dc6dd07501211edfb37dcf6f57a
tree97517bbe44089da7d33a6cc715f835e2adc9ddea
parent915e3ec6b91e91e2931394969a42a4dfd24aa5f3
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+]
fs/ecryptfs/file.c