Commit 3925675c authored by Trond Myklebust's avatar Trond Myklebust

NFS: Fix up the dirty page accounting

There is now no reason to account for the dirty pages in the NFS code,
since the VM code will now do it for us via __set_page_dirty_nobuffers(),
and set_page_writeback().

We still need to keep the accounting of stable writes, though.
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent e507d9eb
...@@ -331,7 +331,6 @@ long nfs_scan_dirty(struct address_space *mapping, ...@@ -331,7 +331,6 @@ long nfs_scan_dirty(struct address_space *mapping,
nfsi->ndirty--; nfsi->ndirty--;
nfs_list_remove_request(req); nfs_list_remove_request(req);
nfs_list_add_request(req, dst); nfs_list_add_request(req, dst);
dec_zone_page_state(req->wb_page, NR_FILE_DIRTY);
res++; res++;
if (res == LONG_MAX) if (res == LONG_MAX)
goto out; goto out;
......
...@@ -440,7 +440,6 @@ nfs_mark_request_dirty(struct nfs_page *req) ...@@ -440,7 +440,6 @@ nfs_mark_request_dirty(struct nfs_page *req)
nfs_list_add_request(req, &nfsi->dirty); nfs_list_add_request(req, &nfsi->dirty);
nfsi->ndirty++; nfsi->ndirty++;
spin_unlock(&nfsi->req_lock); spin_unlock(&nfsi->req_lock);
inc_zone_page_state(req->wb_page, NR_FILE_DIRTY);
mark_inode_dirty(inode); mark_inode_dirty(inode);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment