Lines Matching refs:ifl
706 struct file_lock *ifl; /* Iterator */ in get_lock_matching_unlock() local
712 LIST_FOREACH(ifl, &nfslocklist_head, nfslocklist) { in get_lock_matching_unlock()
713 debuglog("Pointer to file lock: %p\n",ifl); in get_lock_matching_unlock()
716 dump_filelock(ifl); in get_lock_matching_unlock()
725 if (bcmp(&fl->filehandle, &ifl->filehandle, sizeof(fhandle_t))) in get_lock_matching_unlock()
733 ifl->client.l_offset, ifl->client.l_len)) in get_lock_matching_unlock()
739 ifl->client.l_offset,ifl->client.l_len); in get_lock_matching_unlock()
742 if (!same_filelock_identity(fl,ifl)) in get_lock_matching_unlock()
746 return (ifl); in get_lock_matching_unlock()
770 struct file_lock *ifl; /* Iterator */ in test_nfslock() local
786 LIST_FOREACH(ifl, &nfslocklist_head, nfslocklist) { in test_nfslock()
791 debuglog("Pointer to file lock: %p\n",ifl); in test_nfslock()
796 dump_filelock(ifl); in test_nfslock()
805 if (bcmp(&fl->filehandle, &ifl->filehandle, sizeof(fhandle_t))) in test_nfslock()
812 ifl->client.l_offset, ifl->client.l_len)) in test_nfslock()
818 ifl->client.l_offset,ifl->client.l_len); in test_nfslock()
821 if (!(fl->client.exclusive || ifl->client.exclusive)) in test_nfslock()
826 ifl->client.exclusive); in test_nfslock()
828 if (same_filelock_identity(fl,ifl)) { in test_nfslock()
830 (*conflicting_fl) = ifl; in test_nfslock()
838 dump_filelock(ifl); in test_nfslock()
839 (*conflicting_fl) = ifl; in test_nfslock()
1176 struct file_lock *ifl; in duplicate_block() local
1186 LIST_FOREACH(ifl, &blockedlocklist_head, nfslocklist) { in duplicate_block()
1187 if (!bcmp(&fl->filehandle, &ifl->filehandle, in duplicate_block()
1189 fl->client.exclusive == ifl->client.exclusive && in duplicate_block()
1190 fl->client.l_offset == ifl->client.l_offset && in duplicate_block()
1191 fl->client.l_len == ifl->client.l_len && in duplicate_block()
1192 same_filelock_identity(fl, ifl)) { in duplicate_block()
1245 struct file_lock *ifl,*nfl; in clear_blockingfilelock() local
1254 ifl = LIST_FIRST(&blockedlocklist_head); in clear_blockingfilelock()
1256 while (ifl != NULL) { in clear_blockingfilelock()
1257 nfl = LIST_NEXT(ifl, nfslocklist); in clear_blockingfilelock()
1259 if (strncmp(hostname, ifl->client_name, SM_MAXSTRLEN) == 0) { in clear_blockingfilelock()
1260 remove_blockingfilelock(ifl); in clear_blockingfilelock()
1261 deallocate_file_lock(ifl); in clear_blockingfilelock()
1264 ifl = nfl; in clear_blockingfilelock()
1272 struct file_lock *ifl, *nfl; /* Iterator */ in retry_blockingfilelocklist() local
1277 LIST_FOREACH_SAFE(ifl, &blockedlocklist_head, nfslocklist, nfl) { in retry_blockingfilelocklist()
1278 debuglog("Iterator choice %p\n",ifl); in retry_blockingfilelocklist()
1288 LIST_REMOVE(ifl, nfslocklist); in retry_blockingfilelocklist()
1289 pflstatus = lock_partialfilelock(ifl); in retry_blockingfilelocklist()
1294 send_granted(ifl,0); in retry_blockingfilelocklist()
1298 LIST_INSERT_HEAD(&blockedlocklist_head, ifl, nfslocklist); in retry_blockingfilelocklist()
1612 struct file_lock *ifl, *nfl; in clear_partialfilelock() local
1627 ifl = LIST_FIRST(&nfslocklist_head); in clear_partialfilelock()
1629 while (ifl != NULL) { in clear_partialfilelock()
1630 nfl = LIST_NEXT(ifl, nfslocklist); in clear_partialfilelock()
1632 if (strncmp(hostname, ifl->client_name, SM_MAXSTRLEN) == 0) { in clear_partialfilelock()
1634 unlock_partialfilelock(ifl); in clear_partialfilelock()
1637 ifl = nfl; in clear_partialfilelock()