Skip to content

Commit 487b9b8

Browse files
Tom Haynestrondmypd
authored andcommitted
nfs: Can call nfs_clear_page_commit() instead
Signed-off-by: Tom Haynes <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
1 parent d15bc38 commit 487b9b8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

fs/nfs/write.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,11 +1600,8 @@ void nfs_retry_commit(struct list_head *page_list,
16001600
req = nfs_list_entry(page_list->next);
16011601
nfs_list_remove_request(req);
16021602
nfs_mark_request_commit(req, lseg, cinfo, ds_commit_idx);
1603-
if (!cinfo->dreq) {
1604-
dec_zone_page_state(req->wb_page, NR_UNSTABLE_NFS);
1605-
dec_bdi_stat(inode_to_bdi(page_file_mapping(req->wb_page)->host),
1606-
BDI_RECLAIMABLE);
1607-
}
1603+
if (!cinfo->dreq)
1604+
nfs_clear_page_commit(req->wb_page);
16081605
nfs_unlock_and_release_request(req);
16091606
}
16101607
}

0 commit comments

Comments
 (0)