Эх сурвалжийг харах

nfs: Can call nfs_clear_page_commit() instead

Signed-off-by: Tom Haynes <loghyr@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Tom Haynes 10 жил өмнө
parent
commit
487b9b8afd
1 өөрчлөгдсөн 2 нэмэгдсэн , 5 устгасан
  1. 2 5
      fs/nfs/write.c

+ 2 - 5
fs/nfs/write.c

@@ -1600,11 +1600,8 @@ void nfs_retry_commit(struct list_head *page_list,
 		req = nfs_list_entry(page_list->next);
 		req = nfs_list_entry(page_list->next);
 		nfs_list_remove_request(req);
 		nfs_list_remove_request(req);
 		nfs_mark_request_commit(req, lseg, cinfo, ds_commit_idx);
 		nfs_mark_request_commit(req, lseg, cinfo, ds_commit_idx);
-		if (!cinfo->dreq) {
-			dec_zone_page_state(req->wb_page, NR_UNSTABLE_NFS);
-			dec_bdi_stat(inode_to_bdi(page_file_mapping(req->wb_page)->host),
-				     BDI_RECLAIMABLE);
-		}
+		if (!cinfo->dreq)
+			nfs_clear_page_commit(req->wb_page);
 		nfs_unlock_and_release_request(req);
 		nfs_unlock_and_release_request(req);
 	}
 	}
 }
 }