Lines Matching refs:lck
1549 struct lock_to_push *lck, *tmp; in cifs_push_posix_locks() local
1571 lck = kmalloc(sizeof(struct lock_to_push), GFP_KERNEL); in cifs_push_posix_locks()
1572 if (!lck) { in cifs_push_posix_locks()
1576 list_add_tail(&lck->llist, &locks_to_send); in cifs_push_posix_locks()
1595 lck = list_entry(el, struct lock_to_push, llist); in cifs_push_posix_locks()
1596 lck->pid = hash_lockowner(flock->fl_owner); in cifs_push_posix_locks()
1597 lck->netfid = cfile->fid.netfid; in cifs_push_posix_locks()
1598 lck->length = length; in cifs_push_posix_locks()
1599 lck->type = type; in cifs_push_posix_locks()
1600 lck->offset = flock->fl_start; in cifs_push_posix_locks()
1604 list_for_each_entry_safe(lck, tmp, &locks_to_send, llist) { in cifs_push_posix_locks()
1607 stored_rc = CIFSSMBPosixLock(xid, tcon, lck->netfid, lck->pid, in cifs_push_posix_locks()
1608 lck->offset, lck->length, NULL, in cifs_push_posix_locks()
1609 lck->type, 0); in cifs_push_posix_locks()
1612 list_del(&lck->llist); in cifs_push_posix_locks()
1613 kfree(lck); in cifs_push_posix_locks()
1620 list_for_each_entry_safe(lck, tmp, &locks_to_send, llist) { in cifs_push_posix_locks()
1621 list_del(&lck->llist); in cifs_push_posix_locks()
1622 kfree(lck); in cifs_push_posix_locks()