diff options
author | Andy Adamson <andros@netapp.com> | 2012-05-23 05:02:34 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-05-24 16:15:47 -0400 |
commit | 88034c3d88c2c48b215f2cc5eb22e564aa817f9c (patch) | |
tree | aca4a42af31d12777a2ef7bcbf37751b28ff73c6 /include/linux/nfs_xdr.h | |
parent | 54ac471c83aff6b1e068eb8029c797dc68a76e89 (diff) |
NFSv4.1 mdsthreshold attribute xdr
We only support one layout type per file system, so one threshold_item4 per
mdsthreshold4.
Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/nfs_xdr.h')
-rw-r--r-- | include/linux/nfs_xdr.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h index 0872f32c8eef..201c312152fb 100644 --- a/include/linux/nfs_xdr.h +++ b/include/linux/nfs_xdr.h | |||
@@ -35,6 +35,15 @@ static inline int nfs_fsid_equal(const struct nfs_fsid *a, const struct nfs_fsid | |||
35 | return a->major == b->major && a->minor == b->minor; | 35 | return a->major == b->major && a->minor == b->minor; |
36 | } | 36 | } |
37 | 37 | ||
38 | struct nfs4_threshold { | ||
39 | __u32 bm; | ||
40 | __u32 l_type; | ||
41 | __u64 rd_sz; | ||
42 | __u64 wr_sz; | ||
43 | __u64 rd_io_sz; | ||
44 | __u64 wr_io_sz; | ||
45 | }; | ||
46 | |||
38 | struct nfs_fattr { | 47 | struct nfs_fattr { |
39 | unsigned int valid; /* which fields are valid */ | 48 | unsigned int valid; /* which fields are valid */ |
40 | umode_t mode; | 49 | umode_t mode; |
@@ -67,6 +76,7 @@ struct nfs_fattr { | |||
67 | unsigned long gencount; | 76 | unsigned long gencount; |
68 | struct nfs4_string *owner_name; | 77 | struct nfs4_string *owner_name; |
69 | struct nfs4_string *group_name; | 78 | struct nfs4_string *group_name; |
79 | struct nfs4_threshold *mdsthreshold; /* pNFS threshold hints */ | ||
70 | }; | 80 | }; |
71 | 81 | ||
72 | #define NFS_ATTR_FATTR_TYPE (1U << 0) | 82 | #define NFS_ATTR_FATTR_TYPE (1U << 0) |