diff options
author | Pavel Shilovsky <pshilov@microsoft.com> | 2017-01-20 00:53:15 +0300 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2017-02-02 01:46:34 +0300 |
commit | 9c25702cee1405099f982894c865c163de7909a8 (patch) | |
tree | 7cf7049307af9ce699131499a9e5f646b8c9dfef /fs/nilfs2/dat.h | |
parent | b9be76d585d48cb25af8db0d35e1ef9030fbe13a (diff) | |
download | linux-9c25702cee1405099f982894c865c163de7909a8.tar.xz |
CIFS: Fix splice read for non-cached files
Currently we call copy_page_to_iter() for uncached reading into a pipe.
This is wrong because it treats pages as VFS cache pages and copies references
rather than actual data. When we are trying to read from the pipe we end up
calling page_cache_pipe_buf_confirm() which returns -ENODATA. This error
is translated into 0 which is returned to a user.
This issue is reproduced by running xfs-tests suite (generic test #249)
against mount points with "cache=none". Fix it by mapping pages manually
and calling copy_to_iter() that copies data into the pipe.
Cc: Stable <stable@vger.kernel.org>
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Diffstat (limited to 'fs/nilfs2/dat.h')
0 files changed, 0 insertions, 0 deletions