aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4filelayout.h
diff options
context:
space:
mode:
authorFred Isaman <iisaman@netapp.com>2012-04-20 14:47:53 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-04-27 14:10:38 -0400
commitea2cf2282b4278461266013e9c002ee1c66700ff (patch)
tree244de055925710de27206ee0d5d09caa6353bd62 /fs/nfs/nfs4filelayout.h
parent84c53ab5c093058c756dcef1879d38be6de90a3c (diff)
NFS: create struct nfs_commit_info
It is COMMIT that is handled the most differently between the paged and direct paths. Create a structure that encapsulates everything either path needs to know about the commit state. We could use void to hide some of the layout driver stuff, but Trond suggests pulling it out to ensure type checking, given the huge changes being made, and the fact that it doesn't interfere with other drivers. Signed-off-by: Fred Isaman <iisaman@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4filelayout.h')
-rw-r--r--fs/nfs/nfs4filelayout.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/fs/nfs/nfs4filelayout.h b/fs/nfs/nfs4filelayout.h
index 333a3ac97606..96b89bbddf4f 100644
--- a/fs/nfs/nfs4filelayout.h
+++ b/fs/nfs/nfs4filelayout.h
@@ -74,18 +74,6 @@ struct nfs4_file_layout_dsaddr {
74 struct nfs4_pnfs_ds *ds_list[1]; 74 struct nfs4_pnfs_ds *ds_list[1];
75}; 75};
76 76
77struct nfs4_fl_commit_bucket {
78 struct list_head written;
79 struct list_head committing;
80 struct pnfs_layout_segment *wlseg;
81 struct pnfs_layout_segment *clseg;
82};
83
84struct nfs4_fl_commit_info {
85 int nbuckets;
86 struct nfs4_fl_commit_bucket *buckets;
87};
88
89struct nfs4_filelayout_segment { 77struct nfs4_filelayout_segment {
90 struct pnfs_layout_segment generic_hdr; 78 struct pnfs_layout_segment generic_hdr;
91 u32 stripe_type; 79 u32 stripe_type;
@@ -100,7 +88,7 @@ struct nfs4_filelayout_segment {
100 88
101struct nfs4_filelayout { 89struct nfs4_filelayout {
102 struct pnfs_layout_hdr generic_hdr; 90 struct pnfs_layout_hdr generic_hdr;
103 struct nfs4_fl_commit_info commit_info; 91 struct pnfs_ds_commit_info commit_info;
104}; 92};
105 93
106static inline struct nfs4_filelayout * 94static inline struct nfs4_filelayout *