Lines Matching refs:lck
1134 struct lock_to_push *lck, *tmp; in cifs_push_posix_locks() local
1156 lck = kmalloc(sizeof(struct lock_to_push), GFP_KERNEL); in cifs_push_posix_locks()
1157 if (!lck) { in cifs_push_posix_locks()
1161 list_add_tail(&lck->llist, &locks_to_send); in cifs_push_posix_locks()
1180 lck = list_entry(el, struct lock_to_push, llist); in cifs_push_posix_locks()
1181 lck->pid = flock->fl_pid; in cifs_push_posix_locks()
1182 lck->netfid = cfile->fid.netfid; in cifs_push_posix_locks()
1183 lck->length = length; in cifs_push_posix_locks()
1184 lck->type = type; in cifs_push_posix_locks()
1185 lck->offset = flock->fl_start; in cifs_push_posix_locks()
1189 list_for_each_entry_safe(lck, tmp, &locks_to_send, llist) { in cifs_push_posix_locks()
1192 stored_rc = CIFSSMBPosixLock(xid, tcon, lck->netfid, lck->pid, in cifs_push_posix_locks()
1193 lck->offset, lck->length, NULL, in cifs_push_posix_locks()
1194 lck->type, 0); in cifs_push_posix_locks()
1197 list_del(&lck->llist); in cifs_push_posix_locks()
1198 kfree(lck); in cifs_push_posix_locks()
1205 list_for_each_entry_safe(lck, tmp, &locks_to_send, llist) { in cifs_push_posix_locks()
1206 list_del(&lck->llist); in cifs_push_posix_locks()
1207 kfree(lck); in cifs_push_posix_locks()