From: Steve French Date: Wed, 17 Jul 2024 05:42:22 +0000 (-0500) Subject: cifs: fix noisy message on copy_file_range X-Git-Tag: v6.11-rc1~87^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ae4ccca47195332c69176b8615c5ee17efd30c46;p=thirdparty%2Fkernel%2Flinux.git cifs: fix noisy message on copy_file_range 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 Signed-off-by: Steve French --- diff --git a/fs/smb/client/cifsfs.c b/fs/smb/client/cifsfs.c index 6397fdefd876d..c92937bed1331 100644 --- a/fs/smb/client/cifsfs.c +++ b/fs/smb/client/cifsfs.c @@ -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; }