summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4filelayout.h
diff options
context:
space:
mode:
authorFred Isaman <iisaman@netapp.com>2011-03-23 14:27:50 +0100
committerTrond Myklebust <Trond.Myklebust@netapp.com>2011-03-23 20:29:03 +0100
commit425eb736cd905181a4dd4dc8d66342a7c7ab2f27 (patch)
tree0e6b9288f91532b940e3a62cf50e5397f5e5dafc /fs/nfs/nfs4filelayout.h
parentNFSv4.1: shift filelayout_free_lseg (diff)
downloadlinux-425eb736cd905181a4dd4dc8d66342a7c7ab2f27.tar.xz
linux-425eb736cd905181a4dd4dc8d66342a7c7ab2f27.zip
NFSv4.1: alloc and free commit_buckets
Create a preallocated list header to hold nfs_pages for each non-MDS COMMIT destination. Note this is not necessarily each DS, but is basically each <DS, fh> pair. 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/nfs4filelayout.h b/fs/nfs/nfs4filelayout.h
index ee0c907742b5..085a354e0f08 100644
--- a/fs/nfs/nfs4filelayout.h
+++ b/fs/nfs/nfs4filelayout.h
@@ -79,6 +79,8 @@ struct nfs4_filelayout_segment {
struct nfs4_file_layout_dsaddr *dsaddr; /* Point to GETDEVINFO data */
unsigned int num_fh;
struct nfs_fh **fh_array;
+ struct list_head *commit_buckets; /* Sort commits to ds */
+ int number_of_buckets;
};
static inline struct nfs4_filelayout_segment *