@@ -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 (NULL , fm , & args );
51+ return fuse_simple_request (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 (NULL , ff -> fm , args );
114+ fuse_simple_request (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 (NULL , fm , & args );
542+ err = fuse_simple_request (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 (NULL , fm , & args );
575+ return fuse_simple_request (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 (NULL , fm , & ia -> ap .args );
817+ return fuse_simple_request (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 (NULL , fm , & ia .ap .args );
881+ res = fuse_simple_request (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 (NULL , fm , & ap -> args );
979+ res = fuse_simple_request (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 (NULL , fm , & ia -> ap .args );
1104+ err = fuse_simple_request (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 (NULL , fm , & ap -> args );
1150+ err = fuse_simple_request (fm , & ap -> args );
11511151 if (!err && ia -> write .out .size > count )
11521152 err = - EIO ;
11531153
@@ -2662,7 +2662,7 @@ static int fuse_getlk(struct file *file, struct file_lock *fl)
26622662 args .out_numargs = 1 ;
26632663 args .out_args [0 ].size = sizeof (outarg );
26642664 args .out_args [0 ].value = & outarg ;
2665- err = fuse_simple_request (NULL , fm , & args );
2665+ err = fuse_simple_request (fm , & args );
26662666 if (!err )
26672667 err = convert_fuse_file_lock (fm -> fc , & outarg .lk , fl );
26682668
@@ -2686,7 +2686,7 @@ static int fuse_setlk(struct file *file, struct file_lock *fl, int flock)
26862686 }
26872687
26882688 fuse_lk_fill (& args , file , fl , opcode , pid_nr , flock , & inarg );
2689- err = fuse_simple_request (NULL , fm , & args );
2689+ err = fuse_simple_request (fm , & args );
26902690
26912691 /* locking is restartable */
26922692 if (err == - EINTR )
@@ -2760,7 +2760,7 @@ static sector_t fuse_bmap(struct address_space *mapping, sector_t block)
27602760 args .out_numargs = 1 ;
27612761 args .out_args [0 ].size = sizeof (outarg );
27622762 args .out_args [0 ].value = & outarg ;
2763- err = fuse_simple_request (NULL , fm , & args );
2763+ err = fuse_simple_request (fm , & args );
27642764 if (err == - ENOSYS )
27652765 fm -> fc -> no_bmap = 1 ;
27662766
@@ -2792,7 +2792,7 @@ static loff_t fuse_lseek(struct file *file, loff_t offset, int whence)
27922792 args .out_numargs = 1 ;
27932793 args .out_args [0 ].size = sizeof (outarg );
27942794 args .out_args [0 ].value = & outarg ;
2795- err = fuse_simple_request (NULL , fm , & args );
2795+ err = fuse_simple_request (fm , & args );
27962796 if (err ) {
27972797 if (err == - ENOSYS ) {
27982798 fm -> fc -> no_lseek = 1 ;
@@ -2925,7 +2925,7 @@ __poll_t fuse_file_poll(struct file *file, poll_table *wait)
29252925 args .out_numargs = 1 ;
29262926 args .out_args [0 ].size = sizeof (outarg );
29272927 args .out_args [0 ].value = & outarg ;
2928- err = fuse_simple_request (NULL , fm , & args );
2928+ err = fuse_simple_request (fm , & args );
29292929
29302930 if (!err )
29312931 return demangle_poll (outarg .revents );
@@ -3147,7 +3147,7 @@ static long fuse_file_fallocate(struct file *file, int mode, loff_t offset,
31473147 args .in_numargs = 1 ;
31483148 args .in_args [0 ].size = sizeof (inarg );
31493149 args .in_args [0 ].value = & inarg ;
3150- err = fuse_simple_request (NULL , fm , & args );
3150+ err = fuse_simple_request (fm , & args );
31513151 if (err == - ENOSYS ) {
31523152 fm -> fc -> no_fallocate = 1 ;
31533153 err = - EOPNOTSUPP ;
@@ -3259,7 +3259,7 @@ static ssize_t __fuse_copy_file_range(struct file *file_in, loff_t pos_in,
32593259 args .out_numargs = 1 ;
32603260 args .out_args [0 ].size = sizeof (outarg );
32613261 args .out_args [0 ].value = & outarg ;
3262- err = fuse_simple_request (NULL , fm , & args );
3262+ err = fuse_simple_request (fm , & args );
32633263 if (err == - ENOSYS ) {
32643264 fc -> no_copy_file_range = 1 ;
32653265 err = - EOPNOTSUPP ;
0 commit comments