Lines Matching refs:seqid
1069 dst->seqid = 0; in nfs4_select_rw_stateid()
1086 void nfs_release_seqid(struct nfs_seqid *seqid) in nfs_release_seqid() argument
1090 if (seqid == NULL || list_empty(&seqid->list)) in nfs_release_seqid()
1092 sequence = seqid->sequence; in nfs_release_seqid()
1094 list_del_init(&seqid->list); in nfs_release_seqid()
1105 void nfs_free_seqid(struct nfs_seqid *seqid) in nfs_free_seqid() argument
1107 nfs_release_seqid(seqid); in nfs_free_seqid()
1108 kfree(seqid); in nfs_free_seqid()
1116 static void nfs_increment_seqid(int status, struct nfs_seqid *seqid) in nfs_increment_seqid() argument
1122 if (seqid->sequence->flags & NFS_SEQID_CONFIRMED) in nfs_increment_seqid()
1127 seqid->sequence); in nfs_increment_seqid()
1143 seqid->sequence->counter++; in nfs_increment_seqid()
1146 void nfs_increment_open_seqid(int status, struct nfs_seqid *seqid) in nfs_increment_open_seqid() argument
1150 if (seqid == NULL) in nfs_increment_open_seqid()
1153 sp = container_of(seqid->sequence, struct nfs4_state_owner, so_seqid); in nfs_increment_open_seqid()
1157 nfs_increment_seqid(status, seqid); in nfs_increment_open_seqid()
1165 void nfs_increment_lock_seqid(int status, struct nfs_seqid *seqid) in nfs_increment_lock_seqid() argument
1167 if (seqid != NULL) in nfs_increment_lock_seqid()
1168 nfs_increment_seqid(status, seqid); in nfs_increment_lock_seqid()
1171 int nfs_wait_on_sequence(struct nfs_seqid *seqid, struct rpc_task *task) in nfs_wait_on_sequence() argument
1176 if (seqid == NULL) in nfs_wait_on_sequence()
1178 sequence = seqid->sequence; in nfs_wait_on_sequence()
1180 seqid->task = task; in nfs_wait_on_sequence()
1181 if (list_empty(&seqid->list)) in nfs_wait_on_sequence()
1182 list_add_tail(&seqid->list, &sequence->list); in nfs_wait_on_sequence()
1183 if (list_first_entry(&sequence->list, struct nfs_seqid, list) == seqid) in nfs_wait_on_sequence()