浏览代码

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: Trond Myklebust <Trond.Myklebust@netapp.com>
Trond Myklebust 18 年之前
父节点
当前提交
3925675cb3
共有 2 个文件被更改,包括 0 次插入2 次删除
  1. 0 1
      fs/nfs/pagelist.c
  2. 0 1
      fs/nfs/write.c

+ 0 - 1
fs/nfs/pagelist.c

@@ -331,7 +331,6 @@ long nfs_scan_dirty(struct address_space *mapping,
 			nfsi->ndirty--;
 			nfs_list_remove_request(req);
 			nfs_list_add_request(req, dst);
-			dec_zone_page_state(req->wb_page, NR_FILE_DIRTY);
 			res++;
 			if (res == LONG_MAX)
 				goto out;

+ 0 - 1
fs/nfs/write.c

@@ -440,7 +440,6 @@ nfs_mark_request_dirty(struct nfs_page *req)
 	nfs_list_add_request(req, &nfsi->dirty);
 	nfsi->ndirty++;
 	spin_unlock(&nfsi->req_lock);
-	inc_zone_page_state(req->wb_page, NR_FILE_DIRTY);
 	mark_inode_dirty(inode);
 }