eCryptfs: Check return of filemap_write_and_wait during fsync
authorTyler Hicks <tyhicks@canonical.com>
Tue, 4 Jun 2013 17:24:56 +0000 (10:24 -0700)
committerTyler Hicks <tyhicks@canonical.com>
Wed, 5 Jun 2013 06:53:31 +0000 (23:53 -0700)
commitbc5abcf7e411b889f73ea2a90439071a0f451011
treeab1b98a7863fdd9bf80fb8e98d6bd41bae78be1c
parent24a923e4e9a296a8f8ff852109d423ba07616cc4
eCryptfs: Check return of filemap_write_and_wait during fsync

Error out of ecryptfs_fsync() if filemap_write_and_wait() fails.

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Cc: Paul Taysom <taysom@chromium.org>
Cc: Olof Johansson <olofj@chromium.org>
Cc: stable@vger.kernel.org # v3.6+
fs/ecryptfs/file.c