Skip to content

Commit a4f8864

Browse files
Steve Frenchsmb49
authored andcommitted
cifs: fix noisy message on copy_file_range
BugLink: https://bugs.launchpad.net/bugs/2078304 commit ae4ccca47195332c69176b8615c5ee17efd30c46 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Portia Stephens <portia.stephens@canonical.com> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
1 parent d92dd9f commit a4f8864

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/smb/client/cifsfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1412,7 +1412,7 @@ ssize_t cifs_file_copychunk_range(unsigned int xid,
14121412
target_tcon = tlink_tcon(smb_file_target->tlink);
14131413

14141414
if (src_tcon->ses != target_tcon->ses) {
1415-
cifs_dbg(VFS, "source and target of copy not on same server\n");
1415+
cifs_dbg(FYI, "source and target of copy not on same server\n");
14161416
goto out;
14171417
}
14181418

0 commit comments

Comments
 (0)