Lines Matching refs:li

365 	struct cifsLockInfo *li, *tmp;  in cifsFileInfo_put()  local
422 list_for_each_entry_safe(li, tmp, &cifs_file->llist->locks, llist) { in cifsFileInfo_put()
423 list_del(&li->llist); in cifsFileInfo_put()
424 cifs_del_lock_waiters(li); in cifsFileInfo_put()
425 kfree(li); in cifsFileInfo_put()
826 struct cifsLockInfo *li, *tmp; in cifs_del_lock_waiters() local
827 list_for_each_entry_safe(li, tmp, &lock->blist, blist) { in cifs_del_lock_waiters()
828 list_del_init(&li->blist); in cifs_del_lock_waiters()
829 wake_up(&li->block_q); in cifs_del_lock_waiters()
843 struct cifsLockInfo *li; in cifs_find_fid_lock_conflict() local
847 list_for_each_entry(li, &fdlocks->locks, llist) { in cifs_find_fid_lock_conflict()
848 if (offset + length <= li->offset || in cifs_find_fid_lock_conflict()
849 offset >= li->offset + li->length) in cifs_find_fid_lock_conflict()
851 if (rw_check != CIFS_LOCK_OP && current->tgid == li->pid && in cifs_find_fid_lock_conflict()
854 if (!(li->type & server->vals->shared_lock_type) || in cifs_find_fid_lock_conflict()
860 current->tgid == li->pid) || type == li->type)) in cifs_find_fid_lock_conflict()
863 *conf_lock = li; in cifs_find_fid_lock_conflict()
1049 struct cifsLockInfo *li, *tmp; in cifs_push_mandatory_locks() local
1081 list_for_each_entry_safe(li, tmp, &cfile->llist->locks, llist) { in cifs_push_mandatory_locks()
1082 if (li->type != types[i]) in cifs_push_mandatory_locks()
1084 cur->Pid = cpu_to_le16(li->pid); in cifs_push_mandatory_locks()
1085 cur->LengthLow = cpu_to_le32((u32)li->length); in cifs_push_mandatory_locks()
1086 cur->LengthHigh = cpu_to_le32((u32)(li->length>>32)); in cifs_push_mandatory_locks()
1087 cur->OffsetLow = cpu_to_le32((u32)li->offset); in cifs_push_mandatory_locks()
1088 cur->OffsetHigh = cpu_to_le32((u32)(li->offset>>32)); in cifs_push_mandatory_locks()
1092 (__u8)li->type, 0, num, in cifs_push_mandatory_locks()
1357 struct list_head *li, *tmp; in cifs_move_llist() local
1358 list_for_each_safe(li, tmp, source) in cifs_move_llist()
1359 list_move(li, dest); in cifs_move_llist()
1365 struct cifsLockInfo *li, *tmp; in cifs_free_llist() local
1366 list_for_each_entry_safe(li, tmp, llist, llist) { in cifs_free_llist()
1367 cifs_del_lock_waiters(li); in cifs_free_llist()
1368 list_del(&li->llist); in cifs_free_llist()
1369 kfree(li); in cifs_free_llist()
1385 struct cifsLockInfo *li, *tmp; in cifs_unlock_range() local
1409 list_for_each_entry_safe(li, tmp, &cfile->llist->locks, llist) { in cifs_unlock_range()
1410 if (flock->fl_start > li->offset || in cifs_unlock_range()
1412 (li->offset + li->length)) in cifs_unlock_range()
1414 if (current->tgid != li->pid) in cifs_unlock_range()
1416 if (types[i] != li->type) in cifs_unlock_range()
1423 list_del(&li->llist); in cifs_unlock_range()
1424 cifs_del_lock_waiters(li); in cifs_unlock_range()
1425 kfree(li); in cifs_unlock_range()
1428 cur->Pid = cpu_to_le16(li->pid); in cifs_unlock_range()
1429 cur->LengthLow = cpu_to_le32((u32)li->length); in cifs_unlock_range()
1430 cur->LengthHigh = cpu_to_le32((u32)(li->length>>32)); in cifs_unlock_range()
1431 cur->OffsetLow = cpu_to_le32((u32)li->offset); in cifs_unlock_range()
1432 cur->OffsetHigh = cpu_to_le32((u32)(li->offset>>32)); in cifs_unlock_range()
1438 list_move(&li->llist, &tmp_llist); in cifs_unlock_range()
1442 li->type, num, 0, buf); in cifs_unlock_range()