All of lore.kernel.org
 help / color / mirror / Atom feed
* [Virtio-fs] [PATCH] virtiofs: fix return value of iomap_begin_upgrade_mapping
@ 2019-08-21  6:10 Liu Bo
  2019-08-21  6:17 ` Eryu Guan
  2019-08-22 20:16 ` Vivek Goyal
  0 siblings, 2 replies; 6+ messages in thread
From: Liu Bo @ 2019-08-21  6:10 UTC (permalink / raw)
  To: virtio-fs

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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-08-23 12:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-21  6:10 [Virtio-fs] [PATCH] virtiofs: fix return value of iomap_begin_upgrade_mapping Liu Bo
2019-08-21  6:17 ` 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

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.