Lines Matching refs:fl_u
95 list_for_each_entry_safe(p, _p, &vnode->pending_locks, fl_u.afs.link) { in afs_grant_locks()
99 list_move_tail(&p->fl_u.afs.link, &vnode->granted_locks); in afs_grant_locks()
100 p->fl_u.afs.state = AFS_LOCK_GRANTED; in afs_grant_locks()
122 list_for_each_entry_safe(p, _p, &vnode->pending_locks, fl_u.afs.link) { in afs_next_locker()
126 list_del_init(&p->fl_u.afs.link); in afs_next_locker()
127 p->fl_u.afs.state = error; in afs_next_locker()
143 next->fl_u.afs.state = AFS_LOCK_YOUR_TRY; in afs_next_locker()
166 struct file_lock, fl_u.afs.link); in afs_kill_lockers_enoent()
167 list_del_init(&p->fl_u.afs.link); in afs_kill_lockers_enoent()
168 p->fl_u.afs.state = -ENOENT; in afs_kill_lockers_enoent()
470 INIT_LIST_HEAD(&fl->fl_u.afs.link); in afs_do_setlk()
471 fl->fl_u.afs.state = AFS_LOCK_PENDING; in afs_do_setlk()
499 list_add_tail(&fl->fl_u.afs.link, &vnode->pending_locks); in afs_do_setlk()
513 list_move_tail(&fl->fl_u.afs.link, &vnode->granted_locks); in afs_do_setlk()
514 fl->fl_u.afs.state = AFS_LOCK_GRANTED; in afs_do_setlk()
520 list_move_tail(&fl->fl_u.afs.link, &vnode->granted_locks); in afs_do_setlk()
521 fl->fl_u.afs.state = AFS_LOCK_GRANTED; in afs_do_setlk()
565 fl->fl_u.afs.state = ret; in afs_do_setlk()
567 list_del_init(&fl->fl_u.afs.link); in afs_do_setlk()
572 fl->fl_u.afs.state = ret; in afs_do_setlk()
574 list_del_init(&fl->fl_u.afs.link); in afs_do_setlk()
579 fl->fl_u.afs.state = ret; in afs_do_setlk()
581 list_del_init(&fl->fl_u.afs.link); in afs_do_setlk()
591 ASSERTCMP(vnode->pending_locks.next, ==, &fl->fl_u.afs.link); in afs_do_setlk()
605 ASSERTCMP(fl->fl_u.afs.state, ==, AFS_LOCK_GRANTED); in afs_do_setlk()
625 list_del_init(&fl->fl_u.afs.link); in afs_do_setlk()
645 fl->fl_u.afs.state != AFS_LOCK_PENDING); in afs_do_setlk()
648 if (fl->fl_u.afs.state >= 0 && fl->fl_u.afs.state != AFS_LOCK_GRANTED) { in afs_do_setlk()
651 switch (fl->fl_u.afs.state) { in afs_do_setlk()
653 fl->fl_u.afs.state = AFS_LOCK_PENDING; in afs_do_setlk()
663 fl->fl_u.afs.state = AFS_LOCK_PENDING; in afs_do_setlk()
675 if (fl->fl_u.afs.state == AFS_LOCK_GRANTED) in afs_do_setlk()
677 ret = fl->fl_u.afs.state; in afs_do_setlk()
689 list_del_init(&fl->fl_u.afs.link); in afs_do_setlk()
778 fl->fl_u.afs.debug_id = atomic_inc_return(&afs_file_lock_debug_id); in afs_lock()
819 fl->fl_u.afs.debug_id = atomic_inc_return(&afs_file_lock_debug_id); in afs_flock()
850 new->fl_u.afs.debug_id = atomic_inc_return(&afs_file_lock_debug_id); in afs_fl_copy_lock()
854 list_add(&new->fl_u.afs.link, &fl->fl_u.afs.link); in afs_fl_copy_lock()
871 list_del_init(&fl->fl_u.afs.link); in afs_fl_release_private()