• David Howells's avatar
    cifs: Fix copy offload to flush destination region · 8101d6e1
    David Howells authored
    Fix cifs_file_copychunk_range() to flush the destination region before
    invalidating it to avoid potential loss of data should the copy fail, in
    whole or in part, in some way.
    
    Fixes: 7b2404a8 ("cifs: Fix flushing, invalidation and file size with copy_file_range()")
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    cc: Steve French <stfrench@microsoft.com>
    cc: Paulo Alcantara <pc@manguebit.com>
    cc: Shyam Prasad N <nspmangalore@gmail.com>
    cc: Rohith Surabattula <rohiths.msft@gmail.com>
    cc: Matthew Wilcox <willy@infradead.org>
    cc: Jeff Layton <jlayton@kernel.org>
    cc: linux-cifs@vger.kernel.org
    cc: linux-mm@kvack.org
    cc: linux-fsdevel@vger.kernel.org
    Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
    8101d6e1
cifsfs.c 55.5 KB