commit | 83c6ec466cec08fe0e0cc7e59e89886b2bd30270 | [log] [tgz] |
---|---|---|
author | Li Wang <liwang@ubuntukylin.com> | Wed Nov 13 15:22:14 2013 +0800 |
committer | chrmhoffmann <chrmhoffmann@gmail.com> | Sun Apr 05 10:19:18 2020 +0200 |
tree | e0c7cdd36e87cedca369a80f07050d1ac8771d37 | |
parent | d9e60856e0a1727dba629dc8a0ce2dbed9ba3207 [diff] |
ceph: Avoid data inconsistency due to d-cache aliasing in readpage() commit 56f91aad69444d650237295f68c195b74d888d95 upstream. If the length of data to be read in readpage() is exactly PAGE_CACHE_SIZE, the original code does not flush d-cache for data consistency after finishing reading. This patches fixes this. Signed-off-by: Li Wang <liwang@ubuntukylin.com> Signed-off-by: Sage Weil <sage@inktank.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>