• Al Viro's avatar
    nfs_write_end(): fix handling of short copies · c0cf3ef5
    Al Viro authored
    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.
    
    Cc: stable@vger.kernel.org
    Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
    c0cf3ef5
file.c 21.9 KB