Lines Matching refs:plh_flags
282 if (test_and_clear_bit(NFS_LAYOUT_HASHED, &lo->plh_flags)) {
334 set_bit(NFS_LAYOUT_INODE_FREEING, &lo->plh_flags);
360 set_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags);
378 clear_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags);
388 clear_bit_unlock(NFS_LAYOUT_RETURN, &lo->plh_flags);
389 clear_bit(NFS_LAYOUT_RETURN_LOCK, &lo->plh_flags);
391 wake_up_bit(&lo->plh_flags, NFS_LAYOUT_RETURN);
467 set_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags);
472 set_bit(NFS_LAYOUT_DRAIN, &lo->plh_flags);
473 if (test_bit(NFS_LAYOUT_RETURN, &lo->plh_flags) &&
474 !test_and_set_bit(NFS_LAYOUT_RETURN_LOCK, &lo->plh_flags))
490 if (!test_and_set_bit(fail_bit, &lo->plh_flags))
497 if (test_and_clear_bit(fail_bit, &lo->plh_flags))
527 if (test_bit(fail_bit, &lo->plh_flags) == 0)
573 !test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags) &&
574 !test_bit(NFS_LAYOUT_RETURN, &lo->plh_flags)) {
576 set_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags);
577 clear_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags);
840 if (test_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags) ||
841 test_bit(NFS_LAYOUT_INODE_FREEING, &lo->plh_flags) ||
849 if (test_and_clear_bit(NFS_LAYOUT_HASHED, &lo->plh_flags))
891 set_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags);
992 clear_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags);
1026 test_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags);
1202 if (test_and_set_bit(NFS_LAYOUT_RETURN_LOCK, &lo->plh_flags))
1204 set_bit(NFS_LAYOUT_RETURN, &lo->plh_flags);
1208 if (test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags)) {
1292 if (!test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags))
1302 if (!test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags))
1357 if (test_bit(NFS_LAYOUT_RETURN_LOCK, &lo->plh_flags)) {
1359 if (wait_on_bit(&lo->plh_flags, NFS_LAYOUT_RETURN,
1372 if (!test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags) ||
1384 wait_on_bit(&lo->plh_flags, NFS_LAYOUT_RETURN, TASK_UNINTERRUPTIBLE);
1443 test_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags)) {
1448 if (test_bit(NFS_LAYOUT_RETURN_LOCK, &lo->plh_flags)) {
1451 wait_on_bit(&lo->plh_flags, NFS_LAYOUT_RETURN,
1492 if (!test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags))
1614 if (lo && test_bit(NFS_LAYOUT_RETURN, &lo->plh_flags)) {
1739 lo->plh_flags |= 1 << NFS_LAYOUT_INVALID_STID;
1912 return wait_on_bit_action(&lo->plh_flags, NFS_LAYOUT_RETURN,
1925 test_and_clear_bit(NFS_LAYOUT_DRAIN, &lo->plh_flags))
1926 wake_up_bit(&lo->plh_flags, NFS_LAYOUT_DRAIN);
1931 return test_bit(NFS_LAYOUT_FIRST_LAYOUTGET, &lo->plh_flags);
1936 unsigned long *bitlock = &lo->plh_flags;
1946 if (!test_and_set_bit(NFS_LAYOUT_HASHED, &lo->plh_flags)) {
2015 if (test_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags)) {
2033 if (test_bit(NFS_LAYOUT_DRAIN, &lo->plh_flags) &&
2036 lseg = ERR_PTR(wait_on_bit(&lo->plh_flags, NFS_LAYOUT_DRAIN,
2048 if (test_bit(NFS_LAYOUT_RETURN, &lo->plh_flags)) {
2077 if (test_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags)) {
2085 &lo->plh_flags)) {
2087 lseg = ERR_PTR(wait_on_bit(&lo->plh_flags,
2236 if (!test_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags))
2238 if (test_bit(NFS_LAYOUT_RETURN, &lo->plh_flags))
2242 if (test_and_set_bit(NFS_LAYOUT_FIRST_LAYOUTGET, &lo->plh_flags))
2421 if (test_bit(NFS_LAYOUT_DRAIN, &lo->plh_flags) &&
2498 if (test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags))
2581 !test_bit(NFS_LAYOUT_INODE_FREEING, &lo->plh_flags) &&
2582 !test_bit(NFS_LAYOUT_RETURN, &lo->plh_flags);
2652 test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags))