aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2006-07-03 13:49:45 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2006-07-03 13:49:45 -0400
commit026477c1141b67e98e3bd8bdedb7d4b88a3ecd09 (patch)
tree2624a44924c625c367f3cebf937853b9da2de282 /fs/nfs
parent9f2fa466383ce100b90fe52cb4489d7a26bf72a9 (diff)
parent29454dde27d8e340bb1987bad9aa504af7081eba (diff)
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/callback.c1
-rw-r--r--fs/nfs/callback_proc.c1
-rw-r--r--fs/nfs/callback_xdr.c1
-rw-r--r--fs/nfs/delegation.c1
-rw-r--r--fs/nfs/direct.c1
-rw-r--r--fs/nfs/inode.c1
-rw-r--r--fs/nfs/internal.h4
-rw-r--r--fs/nfs/nfs4state.c1
-rw-r--r--fs/nfs/pagelist.c2
-rw-r--r--fs/nfs/read.c1
-rw-r--r--fs/nfs/sysctl.c1
-rw-r--r--fs/nfs/write.c10
12 files changed, 6 insertions, 19 deletions
diff --git a/fs/nfs/callback.c b/fs/nfs/callback.c
index d53f8c6a9ec..fe0a6b8ac14 100644
--- a/fs/nfs/callback.c
+++ b/fs/nfs/callback.c
@@ -6,7 +6,6 @@
6 * NFSv4 callback handling 6 * NFSv4 callback handling
7 */ 7 */
8 8
9#include <linux/config.h>
10#include <linux/completion.h> 9#include <linux/completion.h>
11#include <linux/ip.h> 10#include <linux/ip.h>
12#include <linux/module.h> 11#include <linux/module.h>
diff --git a/fs/nfs/callback_proc.c b/fs/nfs/callback_proc.c
index 462cfceb50c..7719483ecdf 100644
--- a/fs/nfs/callback_proc.c
+++ b/fs/nfs/callback_proc.c
@@ -5,7 +5,6 @@
5 * 5 *
6 * NFSv4 callback procedures 6 * NFSv4 callback procedures
7 */ 7 */
8#include <linux/config.h>
9#include <linux/nfs4.h> 8#include <linux/nfs4.h>
10#include <linux/nfs_fs.h> 9#include <linux/nfs_fs.h>
11#include "nfs4_fs.h" 10#include "nfs4_fs.h"
diff --git a/fs/nfs/callback_xdr.c b/fs/nfs/callback_xdr.c
index c92991328d9..29f93219205 100644
--- a/fs/nfs/callback_xdr.c
+++ b/fs/nfs/callback_xdr.c
@@ -5,7 +5,6 @@
5 * 5 *
6 * NFSv4 callback encode/decode procedures 6 * NFSv4 callback encode/decode procedures
7 */ 7 */
8#include <linux/config.h>
9#include <linux/kernel.h> 8#include <linux/kernel.h>
10#include <linux/sunrpc/svc.h> 9#include <linux/sunrpc/svc.h>
11#include <linux/nfs4.h> 10#include <linux/nfs4.h>
diff --git a/fs/nfs/delegation.c b/fs/nfs/delegation.c
index d3be923d4e4..9540a316c05 100644
--- a/fs/nfs/delegation.c
+++ b/fs/nfs/delegation.c
@@ -6,7 +6,6 @@
6 * NFS file delegation management 6 * NFS file delegation management
7 * 7 *
8 */ 8 */
9#include <linux/config.h>
10#include <linux/completion.h> 9#include <linux/completion.h>
11#include <linux/kthread.h> 10#include <linux/kthread.h>
12#include <linux/module.h> 11#include <linux/module.h>
diff --git a/fs/nfs/direct.c b/fs/nfs/direct.c
index 9ae7b6f6bf3..fecd3b095de 100644
--- a/fs/nfs/direct.c
+++ b/fs/nfs/direct.c
@@ -38,7 +38,6 @@
38 * 38 *
39 */ 39 */
40 40
41#include <linux/config.h>
42#include <linux/errno.h> 41#include <linux/errno.h>
43#include <linux/sched.h> 42#include <linux/sched.h>
44#include <linux/kernel.h> 43#include <linux/kernel.h>
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index c5b916605fb..d349fb2245d 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -13,7 +13,6 @@
13 * 13 *
14 */ 14 */
15 15
16#include <linux/config.h>
17#include <linux/module.h> 16#include <linux/module.h>
18#include <linux/init.h> 17#include <linux/init.h>
19 18
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
index 4fe51c1292b..e4f4e5def0f 100644
--- a/fs/nfs/internal.h
+++ b/fs/nfs/internal.h
@@ -81,9 +81,9 @@ extern struct file_system_type clone_nfs_fs_type;
81#ifdef CONFIG_NFS_V4 81#ifdef CONFIG_NFS_V4
82extern struct file_system_type clone_nfs4_fs_type; 82extern struct file_system_type clone_nfs4_fs_type;
83#endif 83#endif
84#ifdef CONFIG_PROC_FS 84
85extern struct rpc_stat nfs_rpcstat; 85extern struct rpc_stat nfs_rpcstat;
86#endif 86
87extern int __init register_nfs_fs(void); 87extern int __init register_nfs_fs(void);
88extern void __exit unregister_nfs_fs(void); 88extern void __exit unregister_nfs_fs(void);
89 89
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c
index 96e5b82c153..090a36b07a2 100644
--- a/fs/nfs/nfs4state.c
+++ b/fs/nfs/nfs4state.c
@@ -38,7 +38,6 @@
38 * subsequent patch. 38 * subsequent patch.
39 */ 39 */
40 40
41#include <linux/config.h>
42#include <linux/slab.h> 41#include <linux/slab.h>
43#include <linux/smp_lock.h> 42#include <linux/smp_lock.h>
44#include <linux/nfs_fs.h> 43#include <linux/nfs_fs.h>
diff --git a/fs/nfs/pagelist.c b/fs/nfs/pagelist.c
index d89f6fb3b3a..36e902a88ca 100644
--- a/fs/nfs/pagelist.c
+++ b/fs/nfs/pagelist.c
@@ -9,7 +9,6 @@
9 * 9 *
10 */ 10 */
11 11
12#include <linux/config.h>
13#include <linux/slab.h> 12#include <linux/slab.h>
14#include <linux/file.h> 13#include <linux/file.h>
15#include <linux/sunrpc/clnt.h> 14#include <linux/sunrpc/clnt.h>
@@ -315,6 +314,7 @@ nfs_scan_lock_dirty(struct nfs_inode *nfsi, struct list_head *dst,
315 req->wb_index, NFS_PAGE_TAG_DIRTY); 314 req->wb_index, NFS_PAGE_TAG_DIRTY);
316 nfs_list_remove_request(req); 315 nfs_list_remove_request(req);
317 nfs_list_add_request(req, dst); 316 nfs_list_add_request(req, dst);
317 dec_zone_page_state(req->wb_page, NR_FILE_DIRTY);
318 res++; 318 res++;
319 } 319 }
320 } 320 }
diff --git a/fs/nfs/read.c b/fs/nfs/read.c
index 32cf3773af0..52bf634260a 100644
--- a/fs/nfs/read.c
+++ b/fs/nfs/read.c
@@ -15,7 +15,6 @@
15 * within the RPC code when root squashing is suspected. 15 * within the RPC code when root squashing is suspected.
16 */ 16 */
17 17
18#include <linux/config.h>
19#include <linux/time.h> 18#include <linux/time.h>
20#include <linux/kernel.h> 19#include <linux/kernel.h>
21#include <linux/errno.h> 20#include <linux/errno.h>
diff --git a/fs/nfs/sysctl.c b/fs/nfs/sysctl.c
index db61e51bb15..2fe3403c240 100644
--- a/fs/nfs/sysctl.c
+++ b/fs/nfs/sysctl.c
@@ -3,7 +3,6 @@
3 * 3 *
4 * Sysctl interface to NFS parameters 4 * Sysctl interface to NFS parameters
5 */ 5 */
6#include <linux/config.h>
7#include <linux/types.h> 6#include <linux/types.h>
8#include <linux/linkage.h> 7#include <linux/linkage.h>
9#include <linux/ctype.h> 8#include <linux/ctype.h>
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index 8fccb9cb173..bca5734ca9f 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -46,7 +46,6 @@
46 * Copyright (C) 1996, 1997, Olaf Kirch <okir@monad.swb.de> 46 * Copyright (C) 1996, 1997, Olaf Kirch <okir@monad.swb.de>
47 */ 47 */
48 48
49#include <linux/config.h>
50#include <linux/types.h> 49#include <linux/types.h>
51#include <linux/slab.h> 50#include <linux/slab.h>
52#include <linux/mm.h> 51#include <linux/mm.h>
@@ -497,7 +496,7 @@ nfs_mark_request_dirty(struct nfs_page *req)
497 nfs_list_add_request(req, &nfsi->dirty); 496 nfs_list_add_request(req, &nfsi->dirty);
498 nfsi->ndirty++; 497 nfsi->ndirty++;
499 spin_unlock(&nfsi->req_lock); 498 spin_unlock(&nfsi->req_lock);
500 inc_page_state(nr_dirty); 499 inc_zone_page_state(req->wb_page, NR_FILE_DIRTY);
501 mark_inode_dirty(inode); 500 mark_inode_dirty(inode);
502} 501}
503 502
@@ -525,7 +524,7 @@ nfs_mark_request_commit(struct nfs_page *req)
525 nfs_list_add_request(req, &nfsi->commit); 524 nfs_list_add_request(req, &nfsi->commit);
526 nfsi->ncommit++; 525 nfsi->ncommit++;
527 spin_unlock(&nfsi->req_lock); 526 spin_unlock(&nfsi->req_lock);
528 inc_page_state(nr_unstable); 527 inc_zone_page_state(req->wb_page, NR_UNSTABLE_NFS);
529 mark_inode_dirty(inode); 528 mark_inode_dirty(inode);
530} 529}
531#endif 530#endif
@@ -609,7 +608,6 @@ nfs_scan_dirty(struct inode *inode, struct list_head *dst, unsigned long idx_sta
609 if (nfsi->ndirty != 0) { 608 if (nfsi->ndirty != 0) {
610 res = nfs_scan_lock_dirty(nfsi, dst, idx_start, npages); 609 res = nfs_scan_lock_dirty(nfsi, dst, idx_start, npages);
611 nfsi->ndirty -= res; 610 nfsi->ndirty -= res;
612 sub_page_state(nr_dirty,res);
613 if ((nfsi->ndirty == 0) != list_empty(&nfsi->dirty)) 611 if ((nfsi->ndirty == 0) != list_empty(&nfsi->dirty))
614 printk(KERN_ERR "NFS: desynchronized value of nfs_i.ndirty.\n"); 612 printk(KERN_ERR "NFS: desynchronized value of nfs_i.ndirty.\n");
615 } 613 }
@@ -1394,7 +1392,6 @@ static void nfs_commit_done(struct rpc_task *task, void *calldata)
1394{ 1392{
1395 struct nfs_write_data *data = calldata; 1393 struct nfs_write_data *data = calldata;
1396 struct nfs_page *req; 1394 struct nfs_page *req;
1397 int res = 0;
1398 1395
1399 dprintk("NFS: %4d nfs_commit_done (status %d)\n", 1396 dprintk("NFS: %4d nfs_commit_done (status %d)\n",
1400 task->tk_pid, task->tk_status); 1397 task->tk_pid, task->tk_status);
@@ -1406,6 +1403,7 @@ static void nfs_commit_done(struct rpc_task *task, void *calldata)
1406 while (!list_empty(&data->pages)) { 1403 while (!list_empty(&data->pages)) {
1407 req = nfs_list_entry(data->pages.next); 1404 req = nfs_list_entry(data->pages.next);
1408 nfs_list_remove_request(req); 1405 nfs_list_remove_request(req);
1406 dec_zone_page_state(req->wb_page, NR_UNSTABLE_NFS);
1409 1407
1410 dprintk("NFS: commit (%s/%Ld %d@%Ld)", 1408 dprintk("NFS: commit (%s/%Ld %d@%Ld)",
1411 req->wb_context->dentry->d_inode->i_sb->s_id, 1409 req->wb_context->dentry->d_inode->i_sb->s_id,
@@ -1432,9 +1430,7 @@ static void nfs_commit_done(struct rpc_task *task, void *calldata)
1432 nfs_mark_request_dirty(req); 1430 nfs_mark_request_dirty(req);
1433 next: 1431 next:
1434 nfs_clear_page_writeback(req); 1432 nfs_clear_page_writeback(req);
1435 res++;
1436 } 1433 }
1437 sub_page_state(nr_unstable,res);
1438} 1434}
1439 1435
1440static const struct rpc_call_ops nfs_commit_ops = { 1436static const struct rpc_call_ops nfs_commit_ops = {