diff options
Diffstat (limited to 'fs/fuse/dev.c')
-rw-r--r-- | fs/fuse/dev.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index ca6fc0e96d7c..e4ada021d087 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c | |||
@@ -731,13 +731,6 @@ static struct fuse_req *request_find(struct fuse_conn *fc, u64 unique) | |||
731 | return NULL; | 731 | return NULL; |
732 | } | 732 | } |
733 | 733 | ||
734 | /* fget() needs to be done in this context */ | ||
735 | static void process_getdir(struct fuse_req *req) | ||
736 | { | ||
737 | struct fuse_getdir_out_i *arg = req->out.args[0].value; | ||
738 | arg->file = fget(arg->fd); | ||
739 | } | ||
740 | |||
741 | static int copy_out_args(struct fuse_copy_state *cs, struct fuse_out *out, | 734 | static int copy_out_args(struct fuse_copy_state *cs, struct fuse_out *out, |
742 | unsigned nbytes) | 735 | unsigned nbytes) |
743 | { | 736 | { |
@@ -817,8 +810,6 @@ static ssize_t fuse_dev_writev(struct file *file, const struct iovec *iov, | |||
817 | if (!err) { | 810 | if (!err) { |
818 | if (req->interrupted) | 811 | if (req->interrupted) |
819 | err = -ENOENT; | 812 | err = -ENOENT; |
820 | else if (req->in.h.opcode == FUSE_GETDIR && !oh.error) | ||
821 | process_getdir(req); | ||
822 | } else if (!req->interrupted) | 813 | } else if (!req->interrupted) |
823 | req->out.h.error = -EIO; | 814 | req->out.h.error = -EIO; |
824 | request_end(fc, req); | 815 | request_end(fc, req); |