diff options
author | Fred Isaman <iisaman@netapp.com> | 2012-03-08 17:29:35 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-10 17:14:10 -0500 |
commit | d6d6dc7cdfda7c8f49a89a7b7261846f319da6d1 (patch) | |
tree | fd26cf912b676f2752c16ccce1f410872a2a485c /include | |
parent | 9994b62b5621f88828d442fcd03fe3ce4c43344b (diff) |
NFS: remove nfs_inode radix tree
The radix tree is only being used to compile lists of reqs needing commit.
It is simpler to just put the reqs directly into a list.
Signed-off-by: Fred Isaman <iisaman@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nfs_fs.h | 6 | ||||
-rw-r--r-- | include/linux/nfs_page.h | 13 |
2 files changed, 2 insertions, 17 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index ce8e4361ad14..0a63ab2b5a76 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h | |||
@@ -171,13 +171,9 @@ struct nfs_inode { | |||
171 | */ | 171 | */ |
172 | __be32 cookieverf[2]; | 172 | __be32 cookieverf[2]; |
173 | 173 | ||
174 | /* | ||
175 | * This is the list of dirty unwritten pages. | ||
176 | */ | ||
177 | struct radix_tree_root nfs_page_tree; | ||
178 | |||
179 | unsigned long npages; | 174 | unsigned long npages; |
180 | unsigned long ncommit; | 175 | unsigned long ncommit; |
176 | struct list_head commit_list; | ||
181 | 177 | ||
182 | /* Open contexts for shared mmap writes */ | 178 | /* Open contexts for shared mmap writes */ |
183 | struct list_head open_files; | 179 | struct list_head open_files; |
diff --git a/include/linux/nfs_page.h b/include/linux/nfs_page.h index 65b563f0903a..50856e9c1e5f 100644 --- a/include/linux/nfs_page.h +++ b/include/linux/nfs_page.h | |||
@@ -19,11 +19,6 @@ | |||
19 | #include <linux/kref.h> | 19 | #include <linux/kref.h> |
20 | 20 | ||
21 | /* | 21 | /* |
22 | * Valid flags for the radix tree | ||
23 | */ | ||
24 | #define NFS_PAGE_TAG_COMMIT 1 | ||
25 | |||
26 | /* | ||
27 | * Valid flags for a dirty buffer | 22 | * Valid flags for a dirty buffer |
28 | */ | 23 | */ |
29 | enum { | 24 | enum { |
@@ -32,16 +27,12 @@ enum { | |||
32 | PG_CLEAN, | 27 | PG_CLEAN, |
33 | PG_NEED_COMMIT, | 28 | PG_NEED_COMMIT, |
34 | PG_NEED_RESCHED, | 29 | PG_NEED_RESCHED, |
35 | PG_PNFS_COMMIT, | ||
36 | PG_PARTIAL_READ_FAILED, | 30 | PG_PARTIAL_READ_FAILED, |
37 | }; | 31 | }; |
38 | 32 | ||
39 | struct nfs_inode; | 33 | struct nfs_inode; |
40 | struct nfs_page { | 34 | struct nfs_page { |
41 | union { | 35 | struct list_head wb_list; /* Defines state of page: */ |
42 | struct list_head wb_list; /* Defines state of page: */ | ||
43 | struct pnfs_layout_segment *wb_commit_lseg; /* Used when PG_PNFS_COMMIT set */ | ||
44 | }; | ||
45 | struct page *wb_page; /* page to read in/write out */ | 36 | struct page *wb_page; /* page to read in/write out */ |
46 | struct nfs_open_context *wb_context; /* File state context info */ | 37 | struct nfs_open_context *wb_context; /* File state context info */ |
47 | struct nfs_lock_context *wb_lock_context; /* lock context info */ | 38 | struct nfs_lock_context *wb_lock_context; /* lock context info */ |
@@ -89,8 +80,6 @@ extern struct nfs_page *nfs_create_request(struct nfs_open_context *ctx, | |||
89 | extern void nfs_release_request(struct nfs_page *req); | 80 | extern void nfs_release_request(struct nfs_page *req); |
90 | 81 | ||
91 | 82 | ||
92 | extern int nfs_scan_list(struct nfs_inode *nfsi, struct list_head *dst, | ||
93 | pgoff_t idx_start, unsigned int npages, int tag); | ||
94 | extern void nfs_pageio_init(struct nfs_pageio_descriptor *desc, | 83 | extern void nfs_pageio_init(struct nfs_pageio_descriptor *desc, |
95 | struct inode *inode, | 84 | struct inode *inode, |
96 | const struct nfs_pageio_ops *pg_ops, | 85 | const struct nfs_pageio_ops *pg_ops, |