@@ -1083,36 +1083,6 @@ static int filelayout_initiate_commit(struct nfs_commit_data *data, int how)
10831083 return - EAGAIN ;
10841084}
10851085
1086- /* filelayout_search_commit_reqs - Search lists in @cinfo for the head reqest
1087- * for @page
1088- * @cinfo - commit info for current inode
1089- * @page - page to search for matching head request
1090- *
1091- * Returns a the head request if one is found, otherwise returns NULL.
1092- */
1093- static struct nfs_page *
1094- filelayout_search_commit_reqs (struct nfs_commit_info * cinfo , struct page * page )
1095- {
1096- struct nfs_page * freq , * t ;
1097- struct pnfs_commit_bucket * b ;
1098- int i ;
1099-
1100- /* Linearly search the commit lists for each bucket until a matching
1101- * request is found */
1102- for (i = 0 , b = cinfo -> ds -> buckets ; i < cinfo -> ds -> nbuckets ; i ++ , b ++ ) {
1103- list_for_each_entry_safe (freq , t , & b -> written , wb_list ) {
1104- if (freq -> wb_page == page )
1105- return freq -> wb_head ;
1106- }
1107- list_for_each_entry_safe (freq , t , & b -> committing , wb_list ) {
1108- if (freq -> wb_page == page )
1109- return freq -> wb_head ;
1110- }
1111- }
1112-
1113- return NULL ;
1114- }
1115-
11161086static int
11171087filelayout_commit_pagelist (struct inode * inode , struct list_head * mds_pages ,
11181088 int how , struct nfs_commit_info * cinfo )
@@ -1217,7 +1187,7 @@ static struct pnfs_layoutdriver_type filelayout_type = {
12171187 .clear_request_commit = pnfs_generic_clear_request_commit ,
12181188 .scan_commit_lists = pnfs_generic_scan_commit_lists ,
12191189 .recover_commit_reqs = pnfs_generic_recover_commit_reqs ,
1220- .search_commit_reqs = filelayout_search_commit_reqs ,
1190+ .search_commit_reqs = pnfs_generic_search_commit_reqs ,
12211191 .commit_pagelist = filelayout_commit_pagelist ,
12221192 .read_pagelist = filelayout_read_pagelist ,
12231193 .write_pagelist = filelayout_write_pagelist ,
0 commit comments