From: Sunil Mushran Date: Mon, 9 Jun 2008 18:24:41 +0000 (-0700) Subject: ocfs2: Silence an error message in ocfs2_file_aio_read() X-Git-Tag: v2.6.27-rc1~1036^2~12 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=56753bd3b9220f6f2477eb1cf97f40c24e0a4c91;p=~emulex%2Finfiniband.git ocfs2: Silence an error message in ocfs2_file_aio_read() This patch silences an EINVAL error message in ocfs2_file_aio_read() that is always due to a user error. Signed-off-by: Sunil Mushran Signed-off-by: Mark Fasheh --- diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index 57e0d30cde9..e8514e8b6ce 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c @@ -2202,7 +2202,7 @@ static ssize_t ocfs2_file_aio_read(struct kiocb *iocb, ret = generic_file_aio_read(iocb, iov, nr_segs, iocb->ki_pos); if (ret == -EINVAL) - mlog(ML_ERROR, "generic_file_aio_read returned -EINVAL\n"); + mlog(0, "generic_file_aio_read returned -EINVAL\n"); /* buffered aio wouldn't have proper lock coverage today */ BUG_ON(ret == -EIOCBQUEUED && !(filp->f_flags & O_DIRECT));