summaryrefslogtreecommitdiff
path: root/include/linux/nfs_xdr.h
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2020-03-19 00:22:47 +0300
committerTrond Myklebust <trond.myklebust@hammerspace.com>2020-03-26 17:52:04 +0300
commitd7242c4641fba521a1ea9dbccb11a40cf38cd912 (patch)
tree836c15785364b60705e6999b6a4176c13b94a768 /include/linux/nfs_xdr.h
parent19573c939a854483c7c44e939821776db251596b (diff)
downloadlinux-d7242c4641fba521a1ea9dbccb11a40cf38cd912.tar.xz
pNFS: Add a helper to allocate the array of buckets
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'include/linux/nfs_xdr.h')
-rw-r--r--include/linux/nfs_xdr.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h
index 94c77ed55ce1..e91c917c9c1c 100644
--- a/include/linux/nfs_xdr.h
+++ b/include/linux/nfs_xdr.h
@@ -1270,10 +1270,19 @@ struct pnfs_commit_bucket {
struct nfs_writeverf direct_verf;
};
+struct pnfs_commit_array {
+ struct list_head cinfo_list;
+ struct list_head lseg_list;
+ struct pnfs_layout_segment *lseg;
+ struct rcu_head rcu;
+ unsigned int nbuckets;
+ struct pnfs_commit_bucket buckets[];
+};
+
struct pnfs_ds_commit_info {
- int nwritten;
- int ncommitting;
- int nbuckets;
+ unsigned int nwritten;
+ unsigned int ncommitting;
+ unsigned int nbuckets;
struct pnfs_commit_bucket *buckets;
};