]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
cifs: fix noisy message on copy_file_range
authorSteve French <stfrench@microsoft.com>
Wed, 17 Jul 2024 05:42:22 +0000 (00:42 -0500)
committerSteve French <stfrench@microsoft.com>
Fri, 19 Jul 2024 16:08:38 +0000 (11:08 -0500)
There are common cases where copy_file_range can noisily
log "source and target of copy not on same server"
e.g. the mv command across mounts to two different server's shares.
Change this to informational rather than logging as an error.

A followon patch will add dynamic trace points e.g. for
cifs_file_copychunk_range

Cc: stable@vger.kernel.org
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsfs.c

index 6397fdefd876db2ebdd8b84b7e3a6335807af190..c92937bed13315cd7abdadd54863ec45a79b4b82 100644 (file)
@@ -1359,7 +1359,7 @@ ssize_t cifs_file_copychunk_range(unsigned int xid,
        target_tcon = tlink_tcon(smb_file_target->tlink);
 
        if (src_tcon->ses != target_tcon->ses) {
-               cifs_dbg(VFS, "source and target of copy not on same server\n");
+               cifs_dbg(FYI, "source and target of copy not on same server\n");
                goto out;
        }