Lines Matching refs:head
246 struct nfs_page *req, *head; in nfs_find_and_lock_page_request() local
253 head = nfs_page_group_lock_head(req); in nfs_find_and_lock_page_request()
254 if (head != req) in nfs_find_and_lock_page_request()
256 if (IS_ERR(head)) in nfs_find_and_lock_page_request()
257 return head; in nfs_find_and_lock_page_request()
258 ret = nfs_cancel_remove_inode(head, inode); in nfs_find_and_lock_page_request()
260 nfs_unlock_and_release_request(head); in nfs_find_and_lock_page_request()
264 if (head == nfs_page_private_request(page)) in nfs_find_and_lock_page_request()
268 nfs_unlock_and_release_request(head); in nfs_find_and_lock_page_request()
270 return head; in nfs_find_and_lock_page_request()
335 nfs_page_group_search_locked(struct nfs_page *head, unsigned int page_offset) in nfs_page_group_search_locked() argument
339 req = head; in nfs_page_group_search_locked()
346 } while (req != head); in nfs_page_group_search_locked()
504 void nfs_join_page_group(struct nfs_page *head, struct nfs_commit_info *cinfo, in nfs_join_page_group() argument
511 pgbase = head->wb_pgbase; in nfs_join_page_group()
512 bytes = head->wb_bytes; in nfs_join_page_group()
513 off = head->wb_offset; in nfs_join_page_group()
514 for (subreq = head->wb_this_page; subreq != head; in nfs_join_page_group()
527 head->wb_pgbase = pgbase; in nfs_join_page_group()
528 head->wb_bytes = bytes; in nfs_join_page_group()
529 head->wb_offset = off; in nfs_join_page_group()
533 subreq = head; in nfs_join_page_group()
537 } while (subreq != head); in nfs_join_page_group()
540 if (head->wb_this_page != head) { in nfs_join_page_group()
542 destroy_list = head->wb_this_page; in nfs_join_page_group()
543 head->wb_this_page = head; in nfs_join_page_group()
546 nfs_destroy_unlinked_subrequests(destroy_list, head, inode); in nfs_join_page_group()
568 struct nfs_page *head; in nfs_lock_and_join_requests() local
578 head = nfs_find_and_lock_page_request(page); in nfs_lock_and_join_requests()
579 if (IS_ERR_OR_NULL(head)) in nfs_lock_and_join_requests()
580 return head; in nfs_lock_and_join_requests()
583 ret = nfs_page_group_lock_subrequests(head); in nfs_lock_and_join_requests()
585 nfs_unlock_and_release_request(head); in nfs_lock_and_join_requests()
589 nfs_join_page_group(head, &cinfo, inode); in nfs_lock_and_join_requests()
591 return head; in nfs_lock_and_join_requests()
782 struct nfs_page *head; in nfs_inode_remove_request() local
785 head = req->wb_head; in nfs_inode_remove_request()
788 if (likely(head->wb_page && !PageSwapCache(head->wb_page))) { in nfs_inode_remove_request()
789 set_page_private(head->wb_page, 0); in nfs_inode_remove_request()
790 ClearPagePrivate(head->wb_page); in nfs_inode_remove_request()
791 clear_bit(PG_MAPPED, &head->wb_flags); in nfs_inode_remove_request()
1408 static void nfs_async_write_error(struct list_head *head, int error) in nfs_async_write_error() argument
1412 while (!list_empty(head)) { in nfs_async_write_error()
1413 req = nfs_list_entry(head->next); in nfs_async_write_error()
1710 static loff_t nfs_get_lwb(struct list_head *head) in nfs_get_lwb() argument
1715 list_for_each_entry(req, head, wb_list) in nfs_get_lwb()
1726 struct list_head *head, in nfs_init_commit() argument
1737 if (head) in nfs_init_commit()
1738 list_splice_init(head, &data->pages); in nfs_init_commit()
1795 nfs_commit_list(struct inode *inode, struct list_head *head, int how, in nfs_commit_list() argument
1802 if (list_empty(head)) in nfs_commit_list()
1807 nfs_retry_commit(head, NULL, cinfo, -1); in nfs_commit_list()
1812 nfs_init_commit(data, head, NULL, cinfo); in nfs_commit_list()
1909 int nfs_generic_commit_list(struct inode *inode, struct list_head *head, in nfs_generic_commit_list() argument
1914 status = pnfs_commit_list(inode, head, how, cinfo); in nfs_generic_commit_list()
1916 status = nfs_commit_list(inode, head, how, cinfo); in nfs_generic_commit_list()
1923 LIST_HEAD(head); in __nfs_commit_inode()
1932 ret = nscan = nfs_scan_commit(inode, &head, &cinfo); in __nfs_commit_inode()
1935 ret = nfs_generic_commit_list(inode, &head, how, &cinfo); in __nfs_commit_inode()