commit | b775b86a5fe8f45500ce027a60ca0f1e1f49a13e | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Mon Sep 05 21:42:32 2016 -0400 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Jan 09 08:32:24 2017 +0100 |
tree | e46af49fff2b5afdf97f852a1488851182ec8622 | |
parent | fc6cb9c303e289e0772cd9db593db9acd15cd678 [diff] |
nfs_write_end(): fix handling of short copies commit c0cf3ef5e0f47e385920450b245d22bead93e7ad upstream. What matters when deciding if we should make a page uptodate is not how much we _wanted_ to copy, but how much we actually have copied. As it is, on architectures that do not zero tail on short copy we can leave uninitialized data in page marked uptodate. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>