Lines Matching refs:lck
1280 struct lock_to_push *lck, *tmp; in cifs_push_posix_locks() local
1302 lck = kmalloc(sizeof(struct lock_to_push), GFP_KERNEL); in cifs_push_posix_locks()
1303 if (!lck) { in cifs_push_posix_locks()
1307 list_add_tail(&lck->llist, &locks_to_send); in cifs_push_posix_locks()
1326 lck = list_entry(el, struct lock_to_push, llist); in cifs_push_posix_locks()
1327 lck->pid = hash_lockowner(flock->fl_owner); in cifs_push_posix_locks()
1328 lck->netfid = cfile->fid.netfid; in cifs_push_posix_locks()
1329 lck->length = length; in cifs_push_posix_locks()
1330 lck->type = type; in cifs_push_posix_locks()
1331 lck->offset = flock->fl_start; in cifs_push_posix_locks()
1335 list_for_each_entry_safe(lck, tmp, &locks_to_send, llist) { in cifs_push_posix_locks()
1338 stored_rc = CIFSSMBPosixLock(xid, tcon, lck->netfid, lck->pid, in cifs_push_posix_locks()
1339 lck->offset, lck->length, NULL, in cifs_push_posix_locks()
1340 lck->type, 0); in cifs_push_posix_locks()
1343 list_del(&lck->llist); in cifs_push_posix_locks()
1344 kfree(lck); in cifs_push_posix_locks()
1351 list_for_each_entry_safe(lck, tmp, &locks_to_send, llist) { in cifs_push_posix_locks()
1352 list_del(&lck->llist); in cifs_push_posix_locks()
1353 kfree(lck); in cifs_push_posix_locks()