]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ocfs2: Silence an error message in ocfs2_file_aio_read()
authorSunil Mushran <sunil.mushran@oracle.com>
Mon, 9 Jun 2008 18:24:41 +0000 (11:24 -0700)
committerMark Fasheh <mfasheh@suse.com>
Mon, 14 Jul 2008 20:57:15 +0000 (13:57 -0700)
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 <sunil.mushran@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/file.c

index 57e0d30cde9816e048577b69027b5d2cbb92b2ba..e8514e8b6ce8977eb3f75d3a64a7b8f33f96726a 100644 (file)
@@ -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));