• Home
  • Raw
  • Download

Lines Matching refs:li

374 	struct cifsLockInfo *li, *tmp;  in cifsFileInfo_put()  local
436 list_for_each_entry_safe(li, tmp, &cifs_file->llist->locks, llist) { in cifsFileInfo_put()
437 list_del(&li->llist); in cifsFileInfo_put()
438 cifs_del_lock_waiters(li); in cifsFileInfo_put()
439 kfree(li); in cifsFileInfo_put()
885 struct cifsLockInfo *li, *tmp; in cifs_del_lock_waiters() local
886 list_for_each_entry_safe(li, tmp, &lock->blist, blist) { in cifs_del_lock_waiters()
887 list_del_init(&li->blist); in cifs_del_lock_waiters()
888 wake_up(&li->block_q); in cifs_del_lock_waiters()
902 struct cifsLockInfo *li; in cifs_find_fid_lock_conflict() local
906 list_for_each_entry(li, &fdlocks->locks, llist) { in cifs_find_fid_lock_conflict()
907 if (offset + length <= li->offset || in cifs_find_fid_lock_conflict()
908 offset >= li->offset + li->length) in cifs_find_fid_lock_conflict()
910 if (rw_check != CIFS_LOCK_OP && current->tgid == li->pid && in cifs_find_fid_lock_conflict()
913 if (!(li->type & server->vals->shared_lock_type) || in cifs_find_fid_lock_conflict()
919 current->tgid == li->pid) || type == li->type)) in cifs_find_fid_lock_conflict()
922 *conf_lock = li; in cifs_find_fid_lock_conflict()
1108 struct cifsLockInfo *li, *tmp; in cifs_push_mandatory_locks() local
1140 list_for_each_entry_safe(li, tmp, &cfile->llist->locks, llist) { in cifs_push_mandatory_locks()
1141 if (li->type != types[i]) in cifs_push_mandatory_locks()
1143 cur->Pid = cpu_to_le16(li->pid); in cifs_push_mandatory_locks()
1144 cur->LengthLow = cpu_to_le32((u32)li->length); in cifs_push_mandatory_locks()
1145 cur->LengthHigh = cpu_to_le32((u32)(li->length>>32)); in cifs_push_mandatory_locks()
1146 cur->OffsetLow = cpu_to_le32((u32)li->offset); in cifs_push_mandatory_locks()
1147 cur->OffsetHigh = cpu_to_le32((u32)(li->offset>>32)); in cifs_push_mandatory_locks()
1151 (__u8)li->type, 0, num, in cifs_push_mandatory_locks()
1423 struct list_head *li, *tmp; in cifs_move_llist() local
1424 list_for_each_safe(li, tmp, source) in cifs_move_llist()
1425 list_move(li, dest); in cifs_move_llist()
1431 struct cifsLockInfo *li, *tmp; in cifs_free_llist() local
1432 list_for_each_entry_safe(li, tmp, llist, llist) { in cifs_free_llist()
1433 cifs_del_lock_waiters(li); in cifs_free_llist()
1434 list_del(&li->llist); in cifs_free_llist()
1435 kfree(li); in cifs_free_llist()
1451 struct cifsLockInfo *li, *tmp; in cifs_unlock_range() local
1475 list_for_each_entry_safe(li, tmp, &cfile->llist->locks, llist) { in cifs_unlock_range()
1476 if (flock->fl_start > li->offset || in cifs_unlock_range()
1478 (li->offset + li->length)) in cifs_unlock_range()
1480 if (current->tgid != li->pid) in cifs_unlock_range()
1482 if (types[i] != li->type) in cifs_unlock_range()
1489 list_del(&li->llist); in cifs_unlock_range()
1490 cifs_del_lock_waiters(li); in cifs_unlock_range()
1491 kfree(li); in cifs_unlock_range()
1494 cur->Pid = cpu_to_le16(li->pid); in cifs_unlock_range()
1495 cur->LengthLow = cpu_to_le32((u32)li->length); in cifs_unlock_range()
1496 cur->LengthHigh = cpu_to_le32((u32)(li->length>>32)); in cifs_unlock_range()
1497 cur->OffsetLow = cpu_to_le32((u32)li->offset); in cifs_unlock_range()
1498 cur->OffsetHigh = cpu_to_le32((u32)(li->offset>>32)); in cifs_unlock_range()
1504 list_move(&li->llist, &tmp_llist); in cifs_unlock_range()
1508 li->type, num, 0, buf); in cifs_unlock_range()