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);
841 if (test_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags) ||
842 test_bit(NFS_LAYOUT_INODE_FREEING, &lo->plh_flags) ||
850 if (test_and_clear_bit(NFS_LAYOUT_HASHED, &lo->plh_flags))
892 set_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags);
993 clear_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags);
1027 test_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags);
1204 if (test_and_set_bit(NFS_LAYOUT_RETURN_LOCK, &lo->plh_flags))
1206 set_bit(NFS_LAYOUT_RETURN, &lo->plh_flags);
1210 if (test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags)) {
1294 if (!test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags))
1304 if (!test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags))
1359 if (test_bit(NFS_LAYOUT_RETURN_LOCK, &lo->plh_flags)) {
1361 if (wait_on_bit(&lo->plh_flags, NFS_LAYOUT_RETURN,
1374 if (!test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags) ||
1386 wait_on_bit(&lo->plh_flags, NFS_LAYOUT_RETURN, TASK_UNINTERRUPTIBLE);
1445 test_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags)) {
1450 if (test_bit(NFS_LAYOUT_RETURN_LOCK, &lo->plh_flags)) {
1453 wait_on_bit(&lo->plh_flags, NFS_LAYOUT_RETURN,
1494 if (!test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags))
1617 if (lo && test_bit(NFS_LAYOUT_RETURN, &lo->plh_flags)) {
1742 lo->plh_flags |= 1 << NFS_LAYOUT_INVALID_STID;
1915 return wait_on_bit_action(&lo->plh_flags, NFS_LAYOUT_RETURN,
1928 test_and_clear_bit(NFS_LAYOUT_DRAIN, &lo->plh_flags))
1929 wake_up_bit(&lo->plh_flags, NFS_LAYOUT_DRAIN);
1934 return test_bit(NFS_LAYOUT_FIRST_LAYOUTGET, &lo->plh_flags);
1939 unsigned long *bitlock = &lo->plh_flags;
1949 if (!test_and_set_bit(NFS_LAYOUT_HASHED, &lo->plh_flags)) {
2018 if (test_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags)) {
2036 if (test_bit(NFS_LAYOUT_DRAIN, &lo->plh_flags) &&
2039 lseg = ERR_PTR(wait_on_bit(&lo->plh_flags, NFS_LAYOUT_DRAIN,
2051 if (test_bit(NFS_LAYOUT_RETURN, &lo->plh_flags)) {
2080 if (test_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags)) {
2088 &lo->plh_flags)) {
2090 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))
2419 if (test_bit(NFS_LAYOUT_DRAIN, &lo->plh_flags) &&
2498 if (test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags))
2580 !test_bit(NFS_LAYOUT_INODE_FREEING, &lo->plh_flags) &&
2581 !test_bit(NFS_LAYOUT_RETURN, &lo->plh_flags);
2651 test_bit(NFS_LAYOUT_RETURN_REQUESTED, &lo->plh_flags))