Lines Matching refs:plh_flags

283 	if (test_and_clear_bit(NFS_LAYOUT_HASHED, &lo->plh_flags)) {  in pnfs_free_layout_hdr()
335 set_bit(NFS_LAYOUT_INODE_FREEING, &lo->plh_flags); in pnfs_grab_inode_layout_hdr()
361 set_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags); in pnfs_set_plh_return_info()
379 clear_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags); in pnfs_clear_layoutreturn_info()
389 clear_bit_unlock(NFS_LAYOUT_RETURN, &lo->plh_flags); in pnfs_clear_layoutreturn_waitbit()
390 clear_bit(NFS_LAYOUT_RETURN_LOCK, &lo->plh_flags); in pnfs_clear_layoutreturn_waitbit()
392 wake_up_bit(&lo->plh_flags, NFS_LAYOUT_RETURN); in pnfs_clear_layoutreturn_waitbit()
468 set_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags); in pnfs_mark_layout_stateid_invalid()
473 set_bit(NFS_LAYOUT_DRAIN, &lo->plh_flags); in pnfs_mark_layout_stateid_invalid()
474 if (test_bit(NFS_LAYOUT_RETURN, &lo->plh_flags) && in pnfs_mark_layout_stateid_invalid()
475 !test_and_set_bit(NFS_LAYOUT_RETURN_LOCK, &lo->plh_flags)) in pnfs_mark_layout_stateid_invalid()
503 if (!test_and_set_bit(fail_bit, &lo->plh_flags)) in pnfs_layout_set_fail_bit()
510 if (test_and_clear_bit(fail_bit, &lo->plh_flags)) in pnfs_layout_clear_fail_bit()
540 if (test_bit(fail_bit, &lo->plh_flags) == 0) in pnfs_layout_io_test_failed()
586 !test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags) && in pnfs_layout_remove_lseg()
587 !test_bit(NFS_LAYOUT_RETURN, &lo->plh_flags)) { in pnfs_layout_remove_lseg()
589 set_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags); in pnfs_layout_remove_lseg()
590 clear_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags); in pnfs_layout_remove_lseg()
853 if (test_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags) || in pnfs_layout_bulk_destroy_byserver_locked()
854 test_bit(NFS_LAYOUT_INODE_FREEING, &lo->plh_flags) || in pnfs_layout_bulk_destroy_byserver_locked()
905 set_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags); in pnfs_layout_free_bulk_destroy_list()
1072 clear_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags); in pnfs_set_layout_stateid()
1106 test_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags); in pnfs_layoutgets_blocked()
1313 if (test_and_set_bit(NFS_LAYOUT_RETURN_LOCK, &lo->plh_flags)) in pnfs_prepare_layoutreturn()
1315 set_bit(NFS_LAYOUT_RETURN, &lo->plh_flags); in pnfs_prepare_layoutreturn()
1319 if (test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags)) { in pnfs_prepare_layoutreturn()
1390 if (!test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags)) in pnfs_layout_need_return()
1401 if (!test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags)) in pnfs_layoutreturn_before_put_layout_hdr()
1457 if (test_bit(NFS_LAYOUT_RETURN_LOCK, &lo->plh_flags)) { in _pnfs_return_layout()
1459 if (wait_on_bit(&lo->plh_flags, NFS_LAYOUT_RETURN, in _pnfs_return_layout()
1472 if (!test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags) || in _pnfs_return_layout()
1485 wait_on_bit(&lo->plh_flags, NFS_LAYOUT_RETURN, TASK_UNINTERRUPTIBLE); in _pnfs_return_layout()
1562 test_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags)) { in pnfs_roc()
1567 if (test_bit(NFS_LAYOUT_RETURN_LOCK, &lo->plh_flags)) { in pnfs_roc()
1570 wait_on_bit(&lo->plh_flags, NFS_LAYOUT_RETURN, in pnfs_roc()
1611 if (!test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags)) in pnfs_roc()
1734 if (lo && test_bit(NFS_LAYOUT_RETURN, &lo->plh_flags)) { in pnfs_wait_on_layoutreturn()
1859 lo->plh_flags |= 1 << NFS_LAYOUT_INVALID_STID; in alloc_init_layout_hdr()
2032 return wait_on_bit_action(&lo->plh_flags, NFS_LAYOUT_RETURN, in pnfs_prepare_to_retry_layoutget()
2045 test_and_clear_bit(NFS_LAYOUT_DRAIN, &lo->plh_flags)) in nfs_layoutget_end()
2046 wake_up_bit(&lo->plh_flags, NFS_LAYOUT_DRAIN); in nfs_layoutget_end()
2051 return test_bit(NFS_LAYOUT_FIRST_LAYOUTGET, &lo->plh_flags); in pnfs_is_first_layoutget()
2056 unsigned long *bitlock = &lo->plh_flags; in pnfs_clear_first_layoutget()
2066 if (!test_and_set_bit(NFS_LAYOUT_HASHED, &lo->plh_flags)) { in _add_to_server_list()
2145 if (test_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags)) { in pnfs_update_layout()
2163 if (test_bit(NFS_LAYOUT_DRAIN, &lo->plh_flags) && in pnfs_update_layout()
2166 lseg = ERR_PTR(wait_on_bit(&lo->plh_flags, NFS_LAYOUT_DRAIN, in pnfs_update_layout()
2178 if (test_bit(NFS_LAYOUT_RETURN, &lo->plh_flags)) { in pnfs_update_layout()
2207 if (test_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags)) { in pnfs_update_layout()
2215 &lo->plh_flags)) { in pnfs_update_layout()
2217 lseg = ERR_PTR(wait_on_bit(&lo->plh_flags, in pnfs_update_layout()
2368 if (!test_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags)) in _pnfs_grab_empty_layout()
2370 if (test_bit(NFS_LAYOUT_RETURN, &lo->plh_flags)) in _pnfs_grab_empty_layout()
2374 if (test_and_set_bit(NFS_LAYOUT_FIRST_LAYOUTGET, &lo->plh_flags)) in _pnfs_grab_empty_layout()
2553 if (test_bit(NFS_LAYOUT_DRAIN, &lo->plh_flags) && in pnfs_layout_process()
2630 if (test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags)) in pnfs_mark_matching_lsegs_return()
2714 !test_bit(NFS_LAYOUT_INODE_FREEING, &lo->plh_flags) && in pnfs_layout_can_be_returned()
2715 !test_bit(NFS_LAYOUT_RETURN, &lo->plh_flags); in pnfs_layout_can_be_returned()
2785 test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags)) in pnfs_layout_return_unused_byserver()