All of lore.kernel.org
 help / color / mirror / Atom feed
From: Liu Bo <bo.liu@linux.alibaba.com>
To: virtio-fs@redhat.com
Subject: [Virtio-fs] [PATCH] virtiofs: fix return value of iomap_begin_upgrade_mapping
Date: Wed, 21 Aug 2019 14:10:38 +0800	[thread overview]
Message-ID: <1566367838-47809-1-git-send-email-bo.liu@linux.alibaba.com> (raw)

Set ret = 0 if everything runs fine.

Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
---
 fs/fuse/file.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index eb7543a..d3c5e45 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -1985,6 +1985,7 @@ static int iomap_begin_upgrade_mapping(struct inode *inode, loff_t pos,
 
 out_fill_iomap:
 	fuse_fill_iomap(inode, pos, length, iomap, dmap, flags);
+	ret = 0;
 out_err:
 	up_write(&fi->i_dmap_sem);
 	return ret;
-- 
1.8.3.1


             reply	other threads:[~2019-08-21  6:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-21  6:10 Liu Bo [this message]
2019-08-21  6:17 ` [Virtio-fs] [PATCH] virtiofs: fix return value of iomap_begin_upgrade_mapping Eryu Guan
2019-08-21  6:19   ` piaojun
2019-08-22 20:16 ` Vivek Goyal
2019-08-23  0:22   ` piaojun
2019-08-23 12:52     ` Vivek Goyal

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=1566367838-47809-1-git-send-email-bo.liu@linux.alibaba.com \
    --to=bo.liu@linux.alibaba.com \
    --cc=virtio-fs@redhat.com \
    /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.