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()
274 clear_bit_unlock(PG_HEADLOCK, &req->wb_flags); in nfs_page_clear_headlock()
276 if (!test_bit(PG_CONTENDED1, &req->wb_flags)) in nfs_page_clear_headlock()
278 wake_up_bit(&req->wb_flags, PG_HEADLOCK); in nfs_page_clear_headlock()
324 WARN_ON_ONCE(!test_bit(PG_HEADLOCK, &head->wb_flags)); in nfs_page_group_sync_on_bit_locked()
325 WARN_ON_ONCE(test_and_set_bit(bit, &req->wb_flags)); in nfs_page_group_sync_on_bit_locked()
329 if (!test_bit(bit, &tmp->wb_flags)) in nfs_page_group_sync_on_bit_locked()
337 clear_bit(bit, &tmp->wb_flags); in nfs_page_group_sync_on_bit_locked()
380 WARN_ON_ONCE(!test_bit(PG_HEADLOCK, &prev->wb_head->wb_flags)); in nfs_page_group_init()
392 if (test_bit(PG_INODE_REF, &prev->wb_head->wb_flags)) { in nfs_page_group_init()
394 set_bit(PG_INODE_REF, &req->wb_flags); in nfs_page_group_init()
527 clear_bit_unlock(PG_BUSY, &req->wb_flags); in nfs_unlock_request()
529 if (!test_bit(PG_CONTENDED2, &req->wb_flags)) in nfs_unlock_request()
531 wake_up_bit(&req->wb_flags, PG_BUSY); in nfs_unlock_request()
584 WARN_ON_ONCE(test_bit(PG_TEARDOWN, &req->wb_flags)); in nfs_free_request()
585 WARN_ON_ONCE(test_bit(PG_UNLOCKPAGE, &req->wb_flags)); in nfs_free_request()
586 WARN_ON_ONCE(test_bit(PG_UPTODATE, &req->wb_flags)); in nfs_free_request()
587 WARN_ON_ONCE(test_bit(PG_WB_END, &req->wb_flags)); in nfs_free_request()
588 WARN_ON_ONCE(test_bit(PG_REMOVE, &req->wb_flags)); in nfs_free_request()
611 if (!test_bit(PG_BUSY, &req->wb_flags)) in nfs_wait_on_request()
613 set_bit(PG_CONTENDED2, &req->wb_flags); in nfs_wait_on_request()
615 return wait_on_bit_io(&req->wb_flags, PG_BUSY, in nfs_wait_on_request()