@@ -298,8 +298,8 @@ static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon,
298
298
goto finished ;
299
299
}
300
300
num_rqst ++ ;
301
- trace_smb3_query_info_compound_enter (xid , ses -> Suid ,
302
- tcon -> tid , full_path );
301
+ trace_smb3_query_info_compound_enter (xid , tcon -> tid ,
302
+ ses -> Suid , full_path );
303
303
break ;
304
304
case SMB2_OP_POSIX_QUERY_INFO :
305
305
rqst [num_rqst ].rq_iov = & vars -> qi_iov ;
@@ -334,18 +334,18 @@ static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon,
334
334
goto finished ;
335
335
}
336
336
num_rqst ++ ;
337
- trace_smb3_posix_query_info_compound_enter (xid , ses -> Suid ,
338
- tcon -> tid , full_path );
337
+ trace_smb3_posix_query_info_compound_enter (xid , tcon -> tid ,
338
+ ses -> Suid , full_path );
339
339
break ;
340
340
case SMB2_OP_DELETE :
341
- trace_smb3_delete_enter (xid , ses -> Suid , tcon -> tid , full_path );
341
+ trace_smb3_delete_enter (xid , tcon -> tid , ses -> Suid , full_path );
342
342
break ;
343
343
case SMB2_OP_MKDIR :
344
344
/*
345
345
* Directories are created through parameters in the
346
346
* SMB2_open() call.
347
347
*/
348
- trace_smb3_mkdir_enter (xid , ses -> Suid , tcon -> tid , full_path );
348
+ trace_smb3_mkdir_enter (xid , tcon -> tid , ses -> Suid , full_path );
349
349
break ;
350
350
case SMB2_OP_RMDIR :
351
351
rqst [num_rqst ].rq_iov = & vars -> si_iov [0 ];
@@ -363,7 +363,7 @@ static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon,
363
363
goto finished ;
364
364
smb2_set_next_command (tcon , & rqst [num_rqst ]);
365
365
smb2_set_related (& rqst [num_rqst ++ ]);
366
- trace_smb3_rmdir_enter (xid , ses -> Suid , tcon -> tid , full_path );
366
+ trace_smb3_rmdir_enter (xid , tcon -> tid , ses -> Suid , full_path );
367
367
break ;
368
368
case SMB2_OP_SET_EOF :
369
369
rqst [num_rqst ].rq_iov = & vars -> si_iov [0 ];
@@ -398,7 +398,7 @@ static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon,
398
398
goto finished ;
399
399
}
400
400
num_rqst ++ ;
401
- trace_smb3_set_eof_enter (xid , ses -> Suid , tcon -> tid , full_path );
401
+ trace_smb3_set_eof_enter (xid , tcon -> tid , ses -> Suid , full_path );
402
402
break ;
403
403
case SMB2_OP_SET_INFO :
404
404
rqst [num_rqst ].rq_iov = & vars -> si_iov [0 ];
@@ -429,8 +429,8 @@ static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon,
429
429
goto finished ;
430
430
}
431
431
num_rqst ++ ;
432
- trace_smb3_set_info_compound_enter (xid , ses -> Suid ,
433
- tcon -> tid , full_path );
432
+ trace_smb3_set_info_compound_enter (xid , tcon -> tid ,
433
+ ses -> Suid , full_path );
434
434
break ;
435
435
case SMB2_OP_RENAME :
436
436
rqst [num_rqst ].rq_iov = & vars -> si_iov [0 ];
@@ -469,7 +469,7 @@ static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon,
469
469
goto finished ;
470
470
}
471
471
num_rqst ++ ;
472
- trace_smb3_rename_enter (xid , ses -> Suid , tcon -> tid , full_path );
472
+ trace_smb3_rename_enter (xid , tcon -> tid , ses -> Suid , full_path );
473
473
break ;
474
474
case SMB2_OP_HARDLINK :
475
475
rqst [num_rqst ].rq_iov = & vars -> si_iov [0 ];
@@ -496,7 +496,7 @@ static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon,
496
496
goto finished ;
497
497
smb2_set_next_command (tcon , & rqst [num_rqst ]);
498
498
smb2_set_related (& rqst [num_rqst ++ ]);
499
- trace_smb3_hardlink_enter (xid , ses -> Suid , tcon -> tid , full_path );
499
+ trace_smb3_hardlink_enter (xid , tcon -> tid , ses -> Suid , full_path );
500
500
break ;
501
501
case SMB2_OP_SET_REPARSE :
502
502
rqst [num_rqst ].rq_iov = vars -> io_iov ;
@@ -523,8 +523,8 @@ static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon,
523
523
goto finished ;
524
524
}
525
525
num_rqst ++ ;
526
- trace_smb3_set_reparse_compound_enter (xid , ses -> Suid ,
527
- tcon -> tid , full_path );
526
+ trace_smb3_set_reparse_compound_enter (xid , tcon -> tid ,
527
+ ses -> Suid , full_path );
528
528
break ;
529
529
case SMB2_OP_GET_REPARSE :
530
530
rqst [num_rqst ].rq_iov = vars -> io_iov ;
@@ -549,8 +549,8 @@ static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon,
549
549
goto finished ;
550
550
}
551
551
num_rqst ++ ;
552
- trace_smb3_get_reparse_compound_enter (xid , ses -> Suid ,
553
- tcon -> tid , full_path );
552
+ trace_smb3_get_reparse_compound_enter (xid , tcon -> tid ,
553
+ ses -> Suid , full_path );
554
554
break ;
555
555
case SMB2_OP_QUERY_WSL_EA :
556
556
rqst [num_rqst ].rq_iov = & vars -> ea_iov ;
@@ -656,11 +656,11 @@ static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon,
656
656
}
657
657
SMB2_query_info_free (& rqst [num_rqst ++ ]);
658
658
if (rc )
659
- trace_smb3_query_info_compound_err (xid , ses -> Suid ,
660
- tcon -> tid , rc );
659
+ trace_smb3_query_info_compound_err (xid , tcon -> tid ,
660
+ ses -> Suid , rc );
661
661
else
662
- trace_smb3_query_info_compound_done (xid , ses -> Suid ,
663
- tcon -> tid );
662
+ trace_smb3_query_info_compound_done (xid , tcon -> tid ,
663
+ ses -> Suid );
664
664
break ;
665
665
case SMB2_OP_POSIX_QUERY_INFO :
666
666
idata = in_iov [i ].iov_base ;
@@ -683,75 +683,75 @@ static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon,
683
683
684
684
SMB2_query_info_free (& rqst [num_rqst ++ ]);
685
685
if (rc )
686
- trace_smb3_posix_query_info_compound_err (xid , ses -> Suid ,
687
- tcon -> tid , rc );
686
+ trace_smb3_posix_query_info_compound_err (xid , tcon -> tid ,
687
+ ses -> Suid , rc );
688
688
else
689
- trace_smb3_posix_query_info_compound_done (xid , ses -> Suid ,
690
- tcon -> tid );
689
+ trace_smb3_posix_query_info_compound_done (xid , tcon -> tid ,
690
+ ses -> Suid );
691
691
break ;
692
692
case SMB2_OP_DELETE :
693
693
if (rc )
694
- trace_smb3_delete_err (xid , ses -> Suid , tcon -> tid , rc );
694
+ trace_smb3_delete_err (xid , tcon -> tid , ses -> Suid , rc );
695
695
else {
696
696
/*
697
697
* If dentry (hence, inode) is NULL, lease break is going to
698
698
* take care of degrading leases on handles for deleted files.
699
699
*/
700
700
if (inode )
701
701
cifs_mark_open_handles_for_deleted_file (inode , full_path );
702
- trace_smb3_delete_done (xid , ses -> Suid , tcon -> tid );
702
+ trace_smb3_delete_done (xid , tcon -> tid , ses -> Suid );
703
703
}
704
704
break ;
705
705
case SMB2_OP_MKDIR :
706
706
if (rc )
707
- trace_smb3_mkdir_err (xid , ses -> Suid , tcon -> tid , rc );
707
+ trace_smb3_mkdir_err (xid , tcon -> tid , ses -> Suid , rc );
708
708
else
709
- trace_smb3_mkdir_done (xid , ses -> Suid , tcon -> tid );
709
+ trace_smb3_mkdir_done (xid , tcon -> tid , ses -> Suid );
710
710
break ;
711
711
case SMB2_OP_HARDLINK :
712
712
if (rc )
713
- trace_smb3_hardlink_err (xid , ses -> Suid , tcon -> tid , rc );
713
+ trace_smb3_hardlink_err (xid , tcon -> tid , ses -> Suid , rc );
714
714
else
715
- trace_smb3_hardlink_done (xid , ses -> Suid , tcon -> tid );
715
+ trace_smb3_hardlink_done (xid , tcon -> tid , ses -> Suid );
716
716
SMB2_set_info_free (& rqst [num_rqst ++ ]);
717
717
break ;
718
718
case SMB2_OP_RENAME :
719
719
if (rc )
720
- trace_smb3_rename_err (xid , ses -> Suid , tcon -> tid , rc );
720
+ trace_smb3_rename_err (xid , tcon -> tid , ses -> Suid , rc );
721
721
else
722
- trace_smb3_rename_done (xid , ses -> Suid , tcon -> tid );
722
+ trace_smb3_rename_done (xid , tcon -> tid , ses -> Suid );
723
723
SMB2_set_info_free (& rqst [num_rqst ++ ]);
724
724
break ;
725
725
case SMB2_OP_RMDIR :
726
726
if (rc )
727
- trace_smb3_rmdir_err (xid , ses -> Suid , tcon -> tid , rc );
727
+ trace_smb3_rmdir_err (xid , tcon -> tid , ses -> Suid , rc );
728
728
else
729
- trace_smb3_rmdir_done (xid , ses -> Suid , tcon -> tid );
729
+ trace_smb3_rmdir_done (xid , tcon -> tid , ses -> Suid );
730
730
SMB2_set_info_free (& rqst [num_rqst ++ ]);
731
731
break ;
732
732
case SMB2_OP_SET_EOF :
733
733
if (rc )
734
- trace_smb3_set_eof_err (xid , ses -> Suid , tcon -> tid , rc );
734
+ trace_smb3_set_eof_err (xid , tcon -> tid , ses -> Suid , rc );
735
735
else
736
- trace_smb3_set_eof_done (xid , ses -> Suid , tcon -> tid );
736
+ trace_smb3_set_eof_done (xid , tcon -> tid , ses -> Suid );
737
737
SMB2_set_info_free (& rqst [num_rqst ++ ]);
738
738
break ;
739
739
case SMB2_OP_SET_INFO :
740
740
if (rc )
741
- trace_smb3_set_info_compound_err (xid , ses -> Suid ,
742
- tcon -> tid , rc );
741
+ trace_smb3_set_info_compound_err (xid , tcon -> tid ,
742
+ ses -> Suid , rc );
743
743
else
744
- trace_smb3_set_info_compound_done (xid , ses -> Suid ,
745
- tcon -> tid );
744
+ trace_smb3_set_info_compound_done (xid , tcon -> tid ,
745
+ ses -> Suid );
746
746
SMB2_set_info_free (& rqst [num_rqst ++ ]);
747
747
break ;
748
748
case SMB2_OP_SET_REPARSE :
749
749
if (rc ) {
750
- trace_smb3_set_reparse_compound_err (xid , ses -> Suid ,
751
- tcon -> tid , rc );
750
+ trace_smb3_set_reparse_compound_err (xid , tcon -> tid ,
751
+ ses -> Suid , rc );
752
752
} else {
753
- trace_smb3_set_reparse_compound_done (xid , ses -> Suid ,
754
- tcon -> tid );
753
+ trace_smb3_set_reparse_compound_done (xid , tcon -> tid ,
754
+ ses -> Suid );
755
755
}
756
756
SMB2_ioctl_free (& rqst [num_rqst ++ ]);
757
757
break ;
@@ -764,18 +764,18 @@ static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon,
764
764
rbuf = reparse_buf_ptr (iov );
765
765
if (IS_ERR (rbuf )) {
766
766
rc = PTR_ERR (rbuf );
767
- trace_smb3_set_reparse_compound_err (xid , ses -> Suid ,
768
- tcon -> tid , rc );
767
+ trace_smb3_get_reparse_compound_err (xid , tcon -> tid ,
768
+ ses -> Suid , rc );
769
769
} else {
770
770
idata -> reparse .tag = le32_to_cpu (rbuf -> ReparseTag );
771
- trace_smb3_set_reparse_compound_done (xid , ses -> Suid ,
772
- tcon -> tid );
771
+ trace_smb3_get_reparse_compound_done (xid , tcon -> tid ,
772
+ ses -> Suid );
773
773
}
774
774
memset (iov , 0 , sizeof (* iov ));
775
775
resp_buftype [i + 1 ] = CIFS_NO_BUFFER ;
776
776
} else {
777
- trace_smb3_set_reparse_compound_err (xid , ses -> Suid ,
778
- tcon -> tid , rc );
777
+ trace_smb3_get_reparse_compound_err (xid , tcon -> tid ,
778
+ ses -> Suid , rc );
779
779
}
780
780
SMB2_ioctl_free (& rqst [num_rqst ++ ]);
781
781
break ;
@@ -792,11 +792,11 @@ static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon,
792
792
}
793
793
}
794
794
if (!rc ) {
795
- trace_smb3_query_wsl_ea_compound_done (xid , ses -> Suid ,
796
- tcon -> tid );
795
+ trace_smb3_query_wsl_ea_compound_done (xid , tcon -> tid ,
796
+ ses -> Suid );
797
797
} else {
798
- trace_smb3_query_wsl_ea_compound_err (xid , ses -> Suid ,
799
- tcon -> tid , rc );
798
+ trace_smb3_query_wsl_ea_compound_err (xid , tcon -> tid ,
799
+ ses -> Suid , rc );
800
800
}
801
801
SMB2_query_info_free (& rqst [num_rqst ++ ]);
802
802
break ;
0 commit comments