From: "Américo Wang" <xiyou.wangcong@gmail.com>
To: Nicolas Kaiser <nikai@nikai.net>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>,
Jens Axboe <jaxboe@fusionio.com>,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] fs: return error on error condition
Date: Thu, 21 Oct 2010 17:16:42 +0800 [thread overview]
Message-ID: <20101021091642.GD5329@cr0.nay.redhat.com> (raw)
In-Reply-To: <20101020165047.09150171@absol.kitzblitz>
On Wed, Oct 20, 2010 at 04:50:47PM +0200, Nicolas Kaiser wrote:
>It's intended to return an error, right?
>
>Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
>---
> fs/pipe.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
>diff --git a/fs/pipe.c b/fs/pipe.c
>index 279eef9..37eb1eb 100644
>--- a/fs/pipe.c
>+++ b/fs/pipe.c
>@@ -382,7 +382,7 @@ pipe_read(struct kiocb *iocb, const struct iovec *_iov,
> error = ops->confirm(pipe, buf);
> if (error) {
> if (!ret)
>- error = ret;
>+ ret = error;
> break;
> }
>
Wow, I think you are right. :)
next prev parent reply other threads:[~2010-10-21 9:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-20 14:50 [PATCH] fs: return error on error condition Nicolas Kaiser
2010-10-21 9:16 ` Américo Wang [this message]
2010-10-21 9:20 ` Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101021091642.GD5329@cr0.nay.redhat.com \
--to=xiyou.wangcong@gmail.com \
--cc=jaxboe@fusionio.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nikai@nikai.net \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).