]> Git Repo - linux.git/commitdiff
nfs: Can call nfs_clear_page_commit() instead
authorTom Haynes <[email protected]>
Fri, 13 Feb 2015 21:19:54 +0000 (13:19 -0800)
committerTrond Myklebust <[email protected]>
Fri, 13 Feb 2015 22:47:26 +0000 (17:47 -0500)
Signed-off-by: Tom Haynes <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
fs/nfs/write.c

index 76c278acaefcc4d4781d6a3c393d497fbe93408a..595d81e354d18950a21615862b134ca8993f4c6e 100644 (file)
@@ -1600,11 +1600,8 @@ void nfs_retry_commit(struct list_head *page_list,
                req = nfs_list_entry(page_list->next);
                nfs_list_remove_request(req);
                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);
        }
 }
This page took 0.062036 seconds and 4 git commands to generate.