Lines Matching refs:req
42 #define NFS_WBACK_BUSY(req) (test_bit(PG_BUSY,&(req)->wb_flags)) argument
47 extern void nfs_clear_request(struct nfs_page *req);
48 extern void nfs_release_request(struct nfs_page *req);
67 nfs_lock_request_dontget(struct nfs_page *req) in nfs_lock_request_dontget() argument
69 if (test_and_set_bit(PG_BUSY, &req->wb_flags)) in nfs_lock_request_dontget()
78 nfs_lock_request(struct nfs_page *req) in nfs_lock_request() argument
80 if (test_and_set_bit(PG_BUSY, &req->wb_flags)) in nfs_lock_request()
82 req->wb_count++; in nfs_lock_request()
87 nfs_unlock_request(struct nfs_page *req) in nfs_unlock_request() argument
89 if (!NFS_WBACK_BUSY(req)) { in nfs_unlock_request()
94 clear_bit(PG_BUSY, &req->wb_flags); in nfs_unlock_request()
96 if (waitqueue_active(&req->wb_wait)) in nfs_unlock_request()
97 wake_up_all(&req->wb_wait); in nfs_unlock_request()
98 nfs_release_request(req); in nfs_unlock_request()
106 nfs_list_remove_request(struct nfs_page *req) in nfs_list_remove_request() argument
108 if (list_empty(&req->wb_list)) in nfs_list_remove_request()
110 if (!NFS_WBACK_BUSY(req)) { in nfs_list_remove_request()
114 list_del_init(&req->wb_list); in nfs_list_remove_request()
115 req->wb_list_head = NULL; in nfs_list_remove_request()
131 __nfs_add_lru(struct list_head *head, struct nfs_page *req) in __nfs_add_lru() argument
133 list_add_tail(&req->wb_lru, head); in __nfs_add_lru()
137 __nfs_del_lru(struct nfs_page *req) in __nfs_del_lru() argument
139 if (list_empty(&req->wb_lru)) in __nfs_del_lru()
141 list_del_init(&req->wb_lru); in __nfs_del_lru()