All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] fuse: Delete a slightly redundant code
@ 2021-09-08  2:13 Hao Peng
  0 siblings, 0 replies; only message in thread
From: Hao Peng @ 2021-09-08  2:13 UTC (permalink / raw)
  To: Miklos Szeredi; +Cc: linux-fsdevel

From: Peng Hao <flyingpeng@tencent.com>

'ia->io=io' has been set in fuse_io_alloc.

Signed-off-by: Peng Hao <flyingpeng@tencent.com>
---
 fs/fuse/file.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index 97f860cfc195..624371ee9263 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -1447,7 +1447,6 @@ ssize_t fuse_direct_io(struct fuse_io_priv *io,
struct iov_iter *iter,
        if (!ia)
                return -ENOMEM;

-       ia->io = io;
        if (!cuse && fuse_range_is_writeback(inode, idx_from, idx_to)) {
                if (!write)
                        inode_lock(inode);
--
2.27.0

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-08  2:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-08  2:13 [PATCH v2] fuse: Delete a slightly redundant code Hao Peng

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.