Lines Matching refs:lck
1650 struct lock_to_push *lck, *tmp; in cifs_push_posix_locks() local
1672 lck = kmalloc(sizeof(struct lock_to_push), GFP_KERNEL); in cifs_push_posix_locks()
1673 if (!lck) { in cifs_push_posix_locks()
1677 list_add_tail(&lck->llist, &locks_to_send); in cifs_push_posix_locks()
1696 lck = list_entry(el, struct lock_to_push, llist); in cifs_push_posix_locks()
1697 lck->pid = hash_lockowner(flock->fl_owner); in cifs_push_posix_locks()
1698 lck->netfid = cfile->fid.netfid; in cifs_push_posix_locks()
1699 lck->length = length; in cifs_push_posix_locks()
1700 lck->type = type; in cifs_push_posix_locks()
1701 lck->offset = flock->fl_start; in cifs_push_posix_locks()
1705 list_for_each_entry_safe(lck, tmp, &locks_to_send, llist) { in cifs_push_posix_locks()
1708 stored_rc = CIFSSMBPosixLock(xid, tcon, lck->netfid, lck->pid, in cifs_push_posix_locks()
1709 lck->offset, lck->length, NULL, in cifs_push_posix_locks()
1710 lck->type, 0); in cifs_push_posix_locks()
1713 list_del(&lck->llist); in cifs_push_posix_locks()
1714 kfree(lck); in cifs_push_posix_locks()
1721 list_for_each_entry_safe(lck, tmp, &locks_to_send, llist) { in cifs_push_posix_locks()
1722 list_del(&lck->llist); in cifs_push_posix_locks()
1723 kfree(lck); in cifs_push_posix_locks()