From: Eric Sandeen <sandeen@redhat.com>
To: Li Xi <pkuelelixi@gmail.com>,
linux-ext4@vger.kernel.org, tytso@mit.edu, adilger@dilger.ca,
jack@suse.cz
Subject: Re: [PATCH] ext4: fix return value of ext4_do_update_inode
Date: Sun, 28 Sep 2014 21:46:53 -0500 [thread overview]
Message-ID: <5428C81D.1060808@redhat.com> (raw)
In-Reply-To: <1411955914-550-1-git-send-email-lixi@ddn.com>
On 9/28/14 8:58 PM, Li Xi wrote:
> When ext4_do_update_inode() gets error from ext4_inode_blocks_set(),
> error number should be returned.
How strange, it has been missing this error return ever since the
original commit in 2008. :)
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
> Signed-off-by: Li Xi <lixi@ddn.com>
> ---
> fs/ext4/inode.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
> index d5dd7d4..03ddfd7 100644
> --- a/fs/ext4/inode.c
> +++ b/fs/ext4/inode.c
> @@ -4204,7 +4204,8 @@ static int ext4_do_update_inode(handle_t *handle,
> EXT4_INODE_SET_XTIME(i_atime, inode, raw_inode);
> EXT4_EINODE_SET_XTIME(i_crtime, ei, raw_inode);
>
> - if (ext4_inode_blocks_set(handle, raw_inode, ei)) {
> + err = ext4_inode_blocks_set(handle, raw_inode, ei);
> + if (err) {
> spin_unlock(&ei->i_raw_lock);
> goto out_brelse;
> }
>
next prev parent reply other threads:[~2014-09-29 2:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-29 1:58 [PATCH] ext4: fix return value of ext4_do_update_inode Li Xi
2014-09-29 2:46 ` Eric Sandeen [this message]
2014-09-29 11:30 ` Jan Kara
2014-10-02 2:22 ` Theodore Ts'o
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=5428C81D.1060808@redhat.com \
--to=sandeen@redhat.com \
--cc=adilger@dilger.ca \
--cc=jack@suse.cz \
--cc=linux-ext4@vger.kernel.org \
--cc=pkuelelixi@gmail.com \
--cc=tytso@mit.edu \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.