Skip to contentSkip to conversation

Remove the printing of harmless ERRORS like ECONNRESET, EPIPE

Ocfs2-devel tao.ma 2 participants 2 messages Mar 29, 2007 OCFS2

lore
Share & tools
lore

tao.ma

author
#0 lore raw

Remove the printing of harmless ERRORS like ECONNRESET, EPIPE. For more details, see
http://oss.oracle.com/bugzilla/show_bug.cgi?id=865

The ocfs2 kernel source code in git tree don't have function "ocfs2_file_sendfile", so this bug only exists in ocfs2-1.2 branch.

-------------- next part --------------

ocfs2/file.c +0 -2
Index: fs/ocfs2/file.c
===================================================================
@@ -368,8 +368,6 @@ static ssize_t ocfs2_file_sendfile(struc
 	down_read(&OCFS2_I(inode)->ip_alloc_sem);
 
 	ret = generic_file_sendfile(in_file, ppos, count, actor, target);
-	if (ret < 0)
-		mlog_errno(ret);
 
 	up_read(&OCFS2_I(inode)->ip_alloc_sem);
 
#1 lore raw
Quoted 6 lines · tao.ma

Remove the printing of harmless ERRORS like ECONNRESET, EPIPE. For more details, see
http://oss.oracle.com/bugzilla/show_bug.cgi?id=865

The ocfs2 kernel source code in git tree don't have function "ocfs2_file_sendfile", so this bug only exists in ocfs2-1.2 branch.

That looks good - please commit with my sob.

	--Mark

--
Mark Fasheh
Senior Software Developer, Oracle
[email protected]