commit | cb03c14390fb0d345f098730b9ef67ca6058c439 | [log] [tgz] |
---|---|---|
author | Andreas Gruenbacher <agruenba@redhat.com> | Thu Feb 13 21:24:22 2020 +0100 |
committer | Ilya Dryomov <idryomov@gmail.com> | Mon Mar 30 12:42:41 2020 +0200 |
tree | 2a11e5f4ddcd8761f8ab889c2553abd8fe2a198b | |
parent | f682dc713c0af79effde49209f3895072579791b [diff] |
ceph: switch to page_mkwrite_check_truncate in ceph_page_mkwrite Use the "page has been truncated" logic in page_mkwrite_check_truncate instead of reimplementing it here. Other than with the existing code, fail with -EFAULT / VM_FAULT_NOPAGE when page_offset(page) == size here as well, as should be expected. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>