Lines Matching refs:lck
1201 struct lock_to_push *lck, *tmp; in cifs_push_posix_locks() local
1223 lck = kmalloc(sizeof(struct lock_to_push), GFP_KERNEL); in cifs_push_posix_locks()
1224 if (!lck) { in cifs_push_posix_locks()
1228 list_add_tail(&lck->llist, &locks_to_send); in cifs_push_posix_locks()
1247 lck = list_entry(el, struct lock_to_push, llist); in cifs_push_posix_locks()
1248 lck->pid = hash_lockowner(flock->fl_owner); in cifs_push_posix_locks()
1249 lck->netfid = cfile->fid.netfid; in cifs_push_posix_locks()
1250 lck->length = length; in cifs_push_posix_locks()
1251 lck->type = type; in cifs_push_posix_locks()
1252 lck->offset = flock->fl_start; in cifs_push_posix_locks()
1256 list_for_each_entry_safe(lck, tmp, &locks_to_send, llist) { in cifs_push_posix_locks()
1259 stored_rc = CIFSSMBPosixLock(xid, tcon, lck->netfid, lck->pid, in cifs_push_posix_locks()
1260 lck->offset, lck->length, NULL, in cifs_push_posix_locks()
1261 lck->type, 0); in cifs_push_posix_locks()
1264 list_del(&lck->llist); in cifs_push_posix_locks()
1265 kfree(lck); in cifs_push_posix_locks()
1272 list_for_each_entry_safe(lck, tmp, &locks_to_send, llist) { in cifs_push_posix_locks()
1273 list_del(&lck->llist); in cifs_push_posix_locks()
1274 kfree(lck); in cifs_push_posix_locks()