@@ -681,7 +681,7 @@ SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon)
681
681
struct cifs_ses * ses = tcon -> ses ;
682
682
683
683
rc = SMB2_ioctl (xid , tcon , NO_FILE_ID , NO_FILE_ID ,
684
- FSCTL_QUERY_NETWORK_INTERFACE_INFO , true /* is_fsctl */ ,
684
+ FSCTL_QUERY_NETWORK_INTERFACE_INFO ,
685
685
NULL /* no data input */ , 0 /* no data input */ ,
686
686
CIFSMaxBufSize , (char * * )& out_buf , & ret_data_len );
687
687
if (rc == - EOPNOTSUPP ) {
@@ -1323,9 +1323,8 @@ SMB2_request_res_key(const unsigned int xid, struct cifs_tcon *tcon,
1323
1323
struct resume_key_req * res_key ;
1324
1324
1325
1325
rc = SMB2_ioctl (xid , tcon , persistent_fid , volatile_fid ,
1326
- FSCTL_SRV_REQUEST_RESUME_KEY , true /* is_fsctl */ ,
1327
- NULL , 0 /* no input */ , CIFSMaxBufSize ,
1328
- (char * * )& res_key , & ret_data_len );
1326
+ FSCTL_SRV_REQUEST_RESUME_KEY , NULL , 0 /* no input */ ,
1327
+ CIFSMaxBufSize , (char * * )& res_key , & ret_data_len );
1329
1328
1330
1329
if (rc == - EOPNOTSUPP ) {
1331
1330
pr_warn_once ("Server share %s does not support copy range\n" , tcon -> treeName );
@@ -1467,7 +1466,7 @@ smb2_ioctl_query_info(const unsigned int xid,
1467
1466
rqst [1 ].rq_nvec = SMB2_IOCTL_IOV_SIZE ;
1468
1467
1469
1468
rc = SMB2_ioctl_init (tcon , server , & rqst [1 ], COMPOUND_FID , COMPOUND_FID ,
1470
- qi .info_type , true, buffer , qi .output_buffer_length ,
1469
+ qi .info_type , buffer , qi .output_buffer_length ,
1471
1470
CIFSMaxBufSize - MAX_SMB2_CREATE_RESPONSE_SIZE -
1472
1471
MAX_SMB2_CLOSE_RESPONSE_SIZE );
1473
1472
free_req1_func = SMB2_ioctl_free ;
@@ -1643,9 +1642,8 @@ smb2_copychunk_range(const unsigned int xid,
1643
1642
retbuf = NULL ;
1644
1643
rc = SMB2_ioctl (xid , tcon , trgtfile -> fid .persistent_fid ,
1645
1644
trgtfile -> fid .volatile_fid , FSCTL_SRV_COPYCHUNK_WRITE ,
1646
- true /* is_fsctl */ , (char * )pcchunk ,
1647
- sizeof (struct copychunk_ioctl ), CIFSMaxBufSize ,
1648
- (char * * )& retbuf , & ret_data_len );
1645
+ (char * )pcchunk , sizeof (struct copychunk_ioctl ),
1646
+ CIFSMaxBufSize , (char * * )& retbuf , & ret_data_len );
1649
1647
if (rc == 0 ) {
1650
1648
if (ret_data_len !=
1651
1649
sizeof (struct copychunk_ioctl_rsp )) {
@@ -1805,7 +1803,6 @@ static bool smb2_set_sparse(const unsigned int xid, struct cifs_tcon *tcon,
1805
1803
1806
1804
rc = SMB2_ioctl (xid , tcon , cfile -> fid .persistent_fid ,
1807
1805
cfile -> fid .volatile_fid , FSCTL_SET_SPARSE ,
1808
- true /* is_fctl */ ,
1809
1806
& setsparse , 1 , CIFSMaxBufSize , NULL , NULL );
1810
1807
if (rc ) {
1811
1808
tcon -> broken_sparse_sup = true;
@@ -1888,7 +1885,6 @@ smb2_duplicate_extents(const unsigned int xid,
1888
1885
rc = SMB2_ioctl (xid , tcon , trgtfile -> fid .persistent_fid ,
1889
1886
trgtfile -> fid .volatile_fid ,
1890
1887
FSCTL_DUPLICATE_EXTENTS_TO_FILE ,
1891
- true /* is_fsctl */ ,
1892
1888
(char * )& dup_ext_buf ,
1893
1889
sizeof (struct duplicate_extents_to_file ),
1894
1890
CIFSMaxBufSize , NULL ,
@@ -1923,7 +1919,6 @@ smb3_set_integrity(const unsigned int xid, struct cifs_tcon *tcon,
1923
1919
return SMB2_ioctl (xid , tcon , cfile -> fid .persistent_fid ,
1924
1920
cfile -> fid .volatile_fid ,
1925
1921
FSCTL_SET_INTEGRITY_INFORMATION ,
1926
- true /* is_fsctl */ ,
1927
1922
(char * )& integr_info ,
1928
1923
sizeof (struct fsctl_set_integrity_information_req ),
1929
1924
CIFSMaxBufSize , NULL ,
@@ -1976,7 +1971,6 @@ smb3_enum_snapshots(const unsigned int xid, struct cifs_tcon *tcon,
1976
1971
rc = SMB2_ioctl (xid , tcon , cfile -> fid .persistent_fid ,
1977
1972
cfile -> fid .volatile_fid ,
1978
1973
FSCTL_SRV_ENUMERATE_SNAPSHOTS ,
1979
- true /* is_fsctl */ ,
1980
1974
NULL , 0 /* no input data */ , max_response_size ,
1981
1975
(char * * )& retbuf ,
1982
1976
& ret_data_len );
@@ -2699,7 +2693,6 @@ smb2_get_dfs_refer(const unsigned int xid, struct cifs_ses *ses,
2699
2693
do {
2700
2694
rc = SMB2_ioctl (xid , tcon , NO_FILE_ID , NO_FILE_ID ,
2701
2695
FSCTL_DFS_GET_REFERRALS ,
2702
- true /* is_fsctl */ ,
2703
2696
(char * )dfs_req , dfs_req_size , CIFSMaxBufSize ,
2704
2697
(char * * )& dfs_rsp , & dfs_rsp_size );
2705
2698
if (!is_retryable_error (rc ))
@@ -2906,8 +2899,7 @@ smb2_query_symlink(const unsigned int xid, struct cifs_tcon *tcon,
2906
2899
2907
2900
rc = SMB2_ioctl_init (tcon , server ,
2908
2901
& rqst [1 ], fid .persistent_fid ,
2909
- fid .volatile_fid , FSCTL_GET_REPARSE_POINT ,
2910
- true /* is_fctl */ , NULL , 0 ,
2902
+ fid .volatile_fid , FSCTL_GET_REPARSE_POINT , NULL , 0 ,
2911
2903
CIFSMaxBufSize -
2912
2904
MAX_SMB2_CREATE_RESPONSE_SIZE -
2913
2905
MAX_SMB2_CLOSE_RESPONSE_SIZE );
@@ -3087,8 +3079,7 @@ smb2_query_reparse_tag(const unsigned int xid, struct cifs_tcon *tcon,
3087
3079
3088
3080
rc = SMB2_ioctl_init (tcon , server ,
3089
3081
& rqst [1 ], COMPOUND_FID ,
3090
- COMPOUND_FID , FSCTL_GET_REPARSE_POINT ,
3091
- true /* is_fctl */ , NULL , 0 ,
3082
+ COMPOUND_FID , FSCTL_GET_REPARSE_POINT , NULL , 0 ,
3092
3083
CIFSMaxBufSize -
3093
3084
MAX_SMB2_CREATE_RESPONSE_SIZE -
3094
3085
MAX_SMB2_CLOSE_RESPONSE_SIZE );
@@ -3358,7 +3349,7 @@ static long smb3_zero_range(struct file *file, struct cifs_tcon *tcon,
3358
3349
fsctl_buf .BeyondFinalZero = cpu_to_le64 (offset + len );
3359
3350
3360
3351
rc = SMB2_ioctl (xid , tcon , cfile -> fid .persistent_fid ,
3361
- cfile -> fid .volatile_fid , FSCTL_SET_ZERO_DATA , true,
3352
+ cfile -> fid .volatile_fid , FSCTL_SET_ZERO_DATA ,
3362
3353
(char * )& fsctl_buf ,
3363
3354
sizeof (struct file_zero_data_information ),
3364
3355
0 , NULL , NULL );
@@ -3421,7 +3412,7 @@ static long smb3_punch_hole(struct file *file, struct cifs_tcon *tcon,
3421
3412
3422
3413
rc = SMB2_ioctl (xid , tcon , cfile -> fid .persistent_fid ,
3423
3414
cfile -> fid .volatile_fid , FSCTL_SET_ZERO_DATA ,
3424
- true /* is_fctl */ , (char * )& fsctl_buf ,
3415
+ (char * )& fsctl_buf ,
3425
3416
sizeof (struct file_zero_data_information ),
3426
3417
CIFSMaxBufSize , NULL , NULL );
3427
3418
free_xid (xid );
@@ -3481,7 +3472,7 @@ static int smb3_simple_fallocate_range(unsigned int xid,
3481
3472
in_data .length = cpu_to_le64 (len );
3482
3473
rc = SMB2_ioctl (xid , tcon , cfile -> fid .persistent_fid ,
3483
3474
cfile -> fid .volatile_fid ,
3484
- FSCTL_QUERY_ALLOCATED_RANGES , true,
3475
+ FSCTL_QUERY_ALLOCATED_RANGES ,
3485
3476
(char * )& in_data , sizeof (in_data ),
3486
3477
1024 * sizeof (struct file_allocated_range_buffer ),
3487
3478
(char * * )& out_data , & out_data_len );
@@ -3802,7 +3793,7 @@ static loff_t smb3_llseek(struct file *file, struct cifs_tcon *tcon, loff_t offs
3802
3793
3803
3794
rc = SMB2_ioctl (xid , tcon , cfile -> fid .persistent_fid ,
3804
3795
cfile -> fid .volatile_fid ,
3805
- FSCTL_QUERY_ALLOCATED_RANGES , true,
3796
+ FSCTL_QUERY_ALLOCATED_RANGES ,
3806
3797
(char * )& in_data , sizeof (in_data ),
3807
3798
sizeof (struct file_allocated_range_buffer ),
3808
3799
(char * * )& out_data , & out_data_len );
@@ -3862,7 +3853,7 @@ static int smb3_fiemap(struct cifs_tcon *tcon,
3862
3853
3863
3854
rc = SMB2_ioctl (xid , tcon , cfile -> fid .persistent_fid ,
3864
3855
cfile -> fid .volatile_fid ,
3865
- FSCTL_QUERY_ALLOCATED_RANGES , true,
3856
+ FSCTL_QUERY_ALLOCATED_RANGES ,
3866
3857
(char * )& in_data , sizeof (in_data ),
3867
3858
1024 * sizeof (struct file_allocated_range_buffer ),
3868
3859
(char * * )& out_data , & out_data_len );
0 commit comments