@@ -48,7 +48,7 @@ static int fuse_send_open(struct fuse_mount *fm, u64 nodeid,
4848 args .out_args [0 ].size = sizeof (* outargp );
4949 args .out_args [0 ].value = outargp ;
5050
51- return fuse_simple_request (fm , & args );
51+ return fuse_simple_request (NULL , fm , & args );
5252}
5353
5454struct fuse_file * fuse_file_alloc (struct fuse_mount * fm , bool release )
@@ -111,7 +111,7 @@ static void fuse_file_put(struct fuse_file *ff, bool sync)
111111 if (!args ) {
112112 /* Do nothing when server does not implement 'open' */
113113 } else if (sync ) {
114- fuse_simple_request (ff -> fm , args );
114+ fuse_simple_request (NULL , ff -> fm , args );
115115 fuse_release_end (ff -> fm , args , 0 );
116116 } else {
117117 args -> end = fuse_release_end ;
@@ -539,7 +539,7 @@ static int fuse_flush(struct file *file, fl_owner_t id)
539539 args .in_args [0 ].value = & inarg ;
540540 args .force = true;
541541
542- err = fuse_simple_request (fm , & args );
542+ err = fuse_simple_request (NULL , fm , & args );
543543 if (err == - ENOSYS ) {
544544 fm -> fc -> no_flush = 1 ;
545545 err = 0 ;
@@ -572,7 +572,7 @@ int fuse_fsync_common(struct file *file, loff_t start, loff_t end,
572572 args .in_numargs = 1 ;
573573 args .in_args [0 ].size = sizeof (inarg );
574574 args .in_args [0 ].value = & inarg ;
575- return fuse_simple_request (fm , & args );
575+ return fuse_simple_request (NULL , fm , & args );
576576}
577577
578578static int fuse_fsync (struct file * file , loff_t start , loff_t end ,
@@ -814,7 +814,7 @@ static ssize_t fuse_send_read(struct fuse_io_args *ia, loff_t pos, size_t count,
814814 if (ia -> io -> async )
815815 return fuse_async_req_send (fm , ia , count );
816816
817- return fuse_simple_request (fm , & ia -> ap .args );
817+ return fuse_simple_request (NULL , fm , & ia -> ap .args );
818818}
819819
820820static void fuse_read_update_size (struct inode * inode , loff_t size ,
@@ -878,7 +878,7 @@ static int fuse_do_readpage(struct file *file, struct page *page)
878878 desc .length -- ;
879879
880880 fuse_read_args_fill (& ia , file , pos , desc .length , FUSE_READ );
881- res = fuse_simple_request (fm , & ia .ap .args );
881+ res = fuse_simple_request (NULL , fm , & ia .ap .args );
882882 if (res < 0 )
883883 return res ;
884884 /*
@@ -976,7 +976,7 @@ static void fuse_send_readpages(struct fuse_io_args *ia, struct file *file)
976976 if (!err )
977977 return ;
978978 } else {
979- res = fuse_simple_request (fm , & ap -> args );
979+ res = fuse_simple_request (NULL , fm , & ap -> args );
980980 err = res < 0 ? res : 0 ;
981981 }
982982 fuse_readpages_end (fm , & ap -> args , err );
@@ -1101,7 +1101,7 @@ static ssize_t fuse_send_write(struct fuse_io_args *ia, loff_t pos,
11011101 if (ia -> io -> async )
11021102 return fuse_async_req_send (fm , ia , count );
11031103
1104- err = fuse_simple_request (fm , & ia -> ap .args );
1104+ err = fuse_simple_request (NULL , fm , & ia -> ap .args );
11051105 if (!err && ia -> write .out .size > count )
11061106 err = - EIO ;
11071107
@@ -1147,7 +1147,7 @@ static ssize_t fuse_send_write_pages(struct fuse_io_args *ia,
11471147 if (fm -> fc -> handle_killpriv_v2 && !capable (CAP_FSETID ))
11481148 ia -> write .in .write_flags |= FUSE_WRITE_KILL_SUIDGID ;
11491149
1150- err = fuse_simple_request (fm , & ap -> args );
1150+ err = fuse_simple_request (NULL , fm , & ap -> args );
11511151 if (!err && ia -> write .out .size > count )
11521152 err = - EIO ;
11531153
@@ -2661,7 +2661,7 @@ static int fuse_getlk(struct file *file, struct file_lock *fl)
26612661 args .out_numargs = 1 ;
26622662 args .out_args [0 ].size = sizeof (outarg );
26632663 args .out_args [0 ].value = & outarg ;
2664- err = fuse_simple_request (fm , & args );
2664+ err = fuse_simple_request (NULL , fm , & args );
26652665 if (!err )
26662666 err = convert_fuse_file_lock (fm -> fc , & outarg .lk , fl );
26672667
@@ -2685,7 +2685,7 @@ static int fuse_setlk(struct file *file, struct file_lock *fl, int flock)
26852685 }
26862686
26872687 fuse_lk_fill (& args , file , fl , opcode , pid_nr , flock , & inarg );
2688- err = fuse_simple_request (fm , & args );
2688+ err = fuse_simple_request (NULL , fm , & args );
26892689
26902690 /* locking is restartable */
26912691 if (err == - EINTR )
@@ -2759,7 +2759,7 @@ static sector_t fuse_bmap(struct address_space *mapping, sector_t block)
27592759 args .out_numargs = 1 ;
27602760 args .out_args [0 ].size = sizeof (outarg );
27612761 args .out_args [0 ].value = & outarg ;
2762- err = fuse_simple_request (fm , & args );
2762+ err = fuse_simple_request (NULL , fm , & args );
27632763 if (err == - ENOSYS )
27642764 fm -> fc -> no_bmap = 1 ;
27652765
@@ -2791,7 +2791,7 @@ static loff_t fuse_lseek(struct file *file, loff_t offset, int whence)
27912791 args .out_numargs = 1 ;
27922792 args .out_args [0 ].size = sizeof (outarg );
27932793 args .out_args [0 ].value = & outarg ;
2794- err = fuse_simple_request (fm , & args );
2794+ err = fuse_simple_request (NULL , fm , & args );
27952795 if (err ) {
27962796 if (err == - ENOSYS ) {
27972797 fm -> fc -> no_lseek = 1 ;
@@ -2924,7 +2924,7 @@ __poll_t fuse_file_poll(struct file *file, poll_table *wait)
29242924 args .out_numargs = 1 ;
29252925 args .out_args [0 ].size = sizeof (outarg );
29262926 args .out_args [0 ].value = & outarg ;
2927- err = fuse_simple_request (fm , & args );
2927+ err = fuse_simple_request (NULL , fm , & args );
29282928
29292929 if (!err )
29302930 return demangle_poll (outarg .revents );
@@ -3146,7 +3146,7 @@ static long fuse_file_fallocate(struct file *file, int mode, loff_t offset,
31463146 args .in_numargs = 1 ;
31473147 args .in_args [0 ].size = sizeof (inarg );
31483148 args .in_args [0 ].value = & inarg ;
3149- err = fuse_simple_request (fm , & args );
3149+ err = fuse_simple_request (NULL , fm , & args );
31503150 if (err == - ENOSYS ) {
31513151 fm -> fc -> no_fallocate = 1 ;
31523152 err = - EOPNOTSUPP ;
@@ -3258,7 +3258,7 @@ static ssize_t __fuse_copy_file_range(struct file *file_in, loff_t pos_in,
32583258 args .out_numargs = 1 ;
32593259 args .out_args [0 ].size = sizeof (outarg );
32603260 args .out_args [0 ].value = & outarg ;
3261- err = fuse_simple_request (fm , & args );
3261+ err = fuse_simple_request (NULL , fm , & args );
32623262 if (err == - ENOSYS ) {
32633263 fc -> no_copy_file_range = 1 ;
32643264 err = - EOPNOTSUPP ;
0 commit comments