@@ -4072,17 +4072,17 @@ static void handle_cap_export(struct inode *inode, struct ceph_mds_caps *ex,
4072
4072
struct ceph_inode_info * ci = ceph_inode (inode );
4073
4073
u64 t_cap_id ;
4074
4074
unsigned mseq = le32_to_cpu (ex -> migrate_seq );
4075
- unsigned t_seq , t_mseq ;
4075
+ unsigned t_issue_seq , t_mseq ;
4076
4076
int target , issued ;
4077
4077
int mds = session -> s_mds ;
4078
4078
4079
4079
if (ph ) {
4080
4080
t_cap_id = le64_to_cpu (ph -> cap_id );
4081
- t_seq = le32_to_cpu (ph -> seq );
4081
+ t_issue_seq = le32_to_cpu (ph -> issue_seq );
4082
4082
t_mseq = le32_to_cpu (ph -> mseq );
4083
4083
target = le32_to_cpu (ph -> mds );
4084
4084
} else {
4085
- t_cap_id = t_seq = t_mseq = 0 ;
4085
+ t_cap_id = t_issue_seq = t_mseq = 0 ;
4086
4086
target = -1 ;
4087
4087
}
4088
4088
@@ -4120,12 +4120,12 @@ static void handle_cap_export(struct inode *inode, struct ceph_mds_caps *ex,
4120
4120
if (tcap ) {
4121
4121
/* already have caps from the target */
4122
4122
if (tcap -> cap_id == t_cap_id &&
4123
- ceph_seq_cmp (tcap -> seq , t_seq ) < 0 ) {
4123
+ ceph_seq_cmp (tcap -> seq , t_issue_seq ) < 0 ) {
4124
4124
doutc (cl , " updating import cap %p mds%d\n" , tcap ,
4125
4125
target );
4126
4126
tcap -> cap_id = t_cap_id ;
4127
- tcap -> seq = t_seq - 1 ;
4128
- tcap -> issue_seq = t_seq - 1 ;
4127
+ tcap -> seq = t_issue_seq - 1 ;
4128
+ tcap -> issue_seq = t_issue_seq - 1 ;
4129
4129
tcap -> issued |= issued ;
4130
4130
tcap -> implemented |= issued ;
4131
4131
if (cap == ci -> i_auth_cap ) {
@@ -4140,7 +4140,7 @@ static void handle_cap_export(struct inode *inode, struct ceph_mds_caps *ex,
4140
4140
int flag = (cap == ci -> i_auth_cap ) ? CEPH_CAP_FLAG_AUTH : 0 ;
4141
4141
tcap = new_cap ;
4142
4142
ceph_add_cap (inode , tsession , t_cap_id , issued , 0 ,
4143
- t_seq - 1 , t_mseq , (u64 )- 1 , flag , & new_cap );
4143
+ t_issue_seq - 1 , t_mseq , (u64 )- 1 , flag , & new_cap );
4144
4144
4145
4145
if (!list_empty (& ci -> i_cap_flush_list ) &&
4146
4146
ci -> i_auth_cap == tcap ) {
@@ -4254,14 +4254,14 @@ static void handle_cap_import(struct ceph_mds_client *mdsc,
4254
4254
doutc (cl , " remove export cap %p mds%d flags %d\n" ,
4255
4255
ocap , peer , ph -> flags );
4256
4256
if ((ph -> flags & CEPH_CAP_FLAG_AUTH ) &&
4257
- (ocap -> seq != le32_to_cpu (ph -> seq ) ||
4257
+ (ocap -> seq != le32_to_cpu (ph -> issue_seq ) ||
4258
4258
ocap -> mseq != le32_to_cpu (ph -> mseq ))) {
4259
4259
pr_err_ratelimited_client (cl , "mismatched seq/mseq: "
4260
4260
"%p %llx.%llx mds%d seq %d mseq %d"
4261
4261
" importer mds%d has peer seq %d mseq %d\n" ,
4262
4262
inode , ceph_vinop (inode ), peer ,
4263
4263
ocap -> seq , ocap -> mseq , mds ,
4264
- le32_to_cpu (ph -> seq ),
4264
+ le32_to_cpu (ph -> issue_seq ),
4265
4265
le32_to_cpu (ph -> mseq ));
4266
4266
}
4267
4267
ceph_remove_cap (mdsc , ocap , (ph -> flags & CEPH_CAP_FLAG_RELEASE ));
0 commit comments