Skip to content

Commit

Permalink
fuse: delete redundant code
Browse files Browse the repository at this point in the history
'ia->io=io' has been set in fuse_io_alloc.

Signed-off-by: Peng Hao <flyingpeng@tencent.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
  • Loading branch information
Peng Hao authored and Miklos Szeredi committed Oct 22, 2021
1 parent 5fe0fc9 commit b5d9758
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/fuse/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -1445,7 +1445,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);
Expand Down

0 comments on commit b5d9758

Please sign in to comment.