Lines Matching refs:wb_flags
258 if (!test_and_set_bit(PG_HEADLOCK, &req->wb_flags)) in nfs_page_set_headlock()
261 set_bit(PG_CONTENDED1, &req->wb_flags); in nfs_page_set_headlock()
263 return wait_on_bit_lock(&req->wb_flags, PG_HEADLOCK, in nfs_page_set_headlock()
275 clear_bit(PG_HEADLOCK, &req->wb_flags); in nfs_page_clear_headlock()
277 if (!test_bit(PG_CONTENDED1, &req->wb_flags)) in nfs_page_clear_headlock()
279 wake_up_bit(&req->wb_flags, PG_HEADLOCK); in nfs_page_clear_headlock()
325 WARN_ON_ONCE(!test_bit(PG_HEADLOCK, &head->wb_flags)); in nfs_page_group_sync_on_bit_locked()
326 WARN_ON_ONCE(test_and_set_bit(bit, &req->wb_flags)); in nfs_page_group_sync_on_bit_locked()
330 if (!test_bit(bit, &tmp->wb_flags)) in nfs_page_group_sync_on_bit_locked()
338 clear_bit(bit, &tmp->wb_flags); in nfs_page_group_sync_on_bit_locked()
381 WARN_ON_ONCE(!test_bit(PG_HEADLOCK, &prev->wb_head->wb_flags)); in nfs_page_group_init()
393 if (test_bit(PG_INODE_REF, &prev->wb_head->wb_flags)) { in nfs_page_group_init()
395 set_bit(PG_INODE_REF, &req->wb_flags); in nfs_page_group_init()
533 clear_bit(PG_BUSY, &req->wb_flags); in nfs_unlock_request()
535 if (!test_bit(PG_CONTENDED2, &req->wb_flags)) in nfs_unlock_request()
537 wake_up_bit(&req->wb_flags, PG_BUSY); in nfs_unlock_request()
590 WARN_ON_ONCE(test_bit(PG_TEARDOWN, &req->wb_flags)); in nfs_free_request()
591 WARN_ON_ONCE(test_bit(PG_UNLOCKPAGE, &req->wb_flags)); in nfs_free_request()
592 WARN_ON_ONCE(test_bit(PG_UPTODATE, &req->wb_flags)); in nfs_free_request()
593 WARN_ON_ONCE(test_bit(PG_WB_END, &req->wb_flags)); in nfs_free_request()
594 WARN_ON_ONCE(test_bit(PG_REMOVE, &req->wb_flags)); in nfs_free_request()
617 if (!test_bit(PG_BUSY, &req->wb_flags)) in nfs_wait_on_request()
619 set_bit(PG_CONTENDED2, &req->wb_flags); in nfs_wait_on_request()
621 return wait_on_bit_io(&req->wb_flags, PG_BUSY, in nfs_wait_on_request()