Lines Matching refs:wb_flags

145 	if (!test_and_set_bit(PG_HEADLOCK, &req->wb_flags))  in nfs_page_set_headlock()
148 set_bit(PG_CONTENDED1, &req->wb_flags); in nfs_page_set_headlock()
150 return wait_on_bit_lock(&req->wb_flags, PG_HEADLOCK, in nfs_page_set_headlock()
162 clear_bit(PG_HEADLOCK, &req->wb_flags); in nfs_page_clear_headlock()
164 if (!test_bit(PG_CONTENDED1, &req->wb_flags)) in nfs_page_clear_headlock()
166 wake_up_bit(&req->wb_flags, PG_HEADLOCK); in nfs_page_clear_headlock()
212 WARN_ON_ONCE(!test_bit(PG_HEADLOCK, &head->wb_flags)); in nfs_page_group_sync_on_bit_locked()
213 WARN_ON_ONCE(test_and_set_bit(bit, &req->wb_flags)); in nfs_page_group_sync_on_bit_locked()
217 if (!test_bit(bit, &tmp->wb_flags)) in nfs_page_group_sync_on_bit_locked()
225 clear_bit(bit, &tmp->wb_flags); in nfs_page_group_sync_on_bit_locked()
268 WARN_ON_ONCE(!test_bit(PG_HEADLOCK, &prev->wb_head->wb_flags)); in nfs_page_group_init()
280 if (test_bit(PG_INODE_REF, &prev->wb_head->wb_flags)) { in nfs_page_group_init()
282 set_bit(PG_INODE_REF, &req->wb_flags); in nfs_page_group_init()
385 clear_bit(PG_BUSY, &req->wb_flags); in nfs_unlock_request()
387 if (!test_bit(PG_CONTENDED2, &req->wb_flags)) in nfs_unlock_request()
389 wake_up_bit(&req->wb_flags, PG_BUSY); in nfs_unlock_request()
445 WARN_ON_ONCE(test_bit(PG_TEARDOWN, &req->wb_flags)); in nfs_free_request()
446 WARN_ON_ONCE(test_bit(PG_UNLOCKPAGE, &req->wb_flags)); in nfs_free_request()
447 WARN_ON_ONCE(test_bit(PG_UPTODATE, &req->wb_flags)); in nfs_free_request()
448 WARN_ON_ONCE(test_bit(PG_WB_END, &req->wb_flags)); in nfs_free_request()
449 WARN_ON_ONCE(test_bit(PG_REMOVE, &req->wb_flags)); in nfs_free_request()
472 if (!test_bit(PG_BUSY, &req->wb_flags)) in nfs_wait_on_request()
474 set_bit(PG_CONTENDED2, &req->wb_flags); in nfs_wait_on_request()
476 return wait_on_bit_io(&req->wb_flags, PG_BUSY, in nfs_wait_on_request()