aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nfs_xdr.h
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2011-09-15 09:08:05 -0400
committerJiri Kosina <jkosina@suse.cz>2011-09-15 09:08:18 -0400
commite060c38434b2caa78efe7cedaff4191040b65a15 (patch)
tree407361230bf6733f63d8e788e4b5e6566ee04818 /include/linux/nfs_xdr.h
parent10e4ac572eeffe5317019bd7330b6058a400dfc2 (diff)
parentcc39c6a9bbdebfcf1a7dee64d83bf302bc38d941 (diff)
Merge branch 'master' into for-next
Fast-forward merge with Linus to be able to merge patches based on more recent version of the tree.
Diffstat (limited to 'include/linux/nfs_xdr.h')
-rw-r--r--include/linux/nfs_xdr.h61
1 files changed, 53 insertions, 8 deletions
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h
index 00848d86ffb2..abd615d74a29 100644
--- a/include/linux/nfs_xdr.h
+++ b/include/linux/nfs_xdr.h
@@ -122,6 +122,7 @@ struct nfs_fsinfo {
122 struct timespec time_delta; /* server time granularity */ 122 struct timespec time_delta; /* server time granularity */
123 __u32 lease_time; /* in seconds */ 123 __u32 lease_time; /* in seconds */
124 __u32 layouttype; /* supported pnfs layout driver */ 124 __u32 layouttype; /* supported pnfs layout driver */
125 __u32 blksize; /* preferred pnfs io block size */
125}; 126};
126 127
127struct nfs_fsstat { 128struct nfs_fsstat {
@@ -235,6 +236,17 @@ struct nfs4_layoutget {
235 gfp_t gfp_flags; 236 gfp_t gfp_flags;
236}; 237};
237 238
239struct nfs4_getdevicelist_args {
240 const struct nfs_fh *fh;
241 u32 layoutclass;
242 struct nfs4_sequence_args seq_args;
243};
244
245struct nfs4_getdevicelist_res {
246 struct pnfs_devicelist *devlist;
247 struct nfs4_sequence_res seq_res;
248};
249
238struct nfs4_getdeviceinfo_args { 250struct nfs4_getdeviceinfo_args {
239 struct pnfs_device *pdev; 251 struct pnfs_device *pdev;
240 struct nfs4_sequence_args seq_args; 252 struct nfs4_sequence_args seq_args;
@@ -257,21 +269,23 @@ struct nfs4_layoutcommit_res {
257 struct nfs_fattr *fattr; 269 struct nfs_fattr *fattr;
258 const struct nfs_server *server; 270 const struct nfs_server *server;
259 struct nfs4_sequence_res seq_res; 271 struct nfs4_sequence_res seq_res;
272 int status;
260}; 273};
261 274
262struct nfs4_layoutcommit_data { 275struct nfs4_layoutcommit_data {
263 struct rpc_task task; 276 struct rpc_task task;
264 struct nfs_fattr fattr; 277 struct nfs_fattr fattr;
265 struct pnfs_layout_segment *lseg; 278 struct list_head lseg_list;
266 struct rpc_cred *cred; 279 struct rpc_cred *cred;
267 struct nfs4_layoutcommit_args args; 280 struct nfs4_layoutcommit_args args;
268 struct nfs4_layoutcommit_res res; 281 struct nfs4_layoutcommit_res res;
269}; 282};
270 283
271struct nfs4_layoutreturn_args { 284struct nfs4_layoutreturn_args {
272 __u32 layout_type; 285 struct pnfs_layout_hdr *layout;
273 struct inode *inode; 286 struct inode *inode;
274 nfs4_stateid stateid; 287 nfs4_stateid stateid;
288 __u32 layout_type;
275 struct nfs4_sequence_args seq_args; 289 struct nfs4_sequence_args seq_args;
276}; 290};
277 291
@@ -759,6 +773,11 @@ struct nfs3_getaclres {
759 struct posix_acl * acl_default; 773 struct posix_acl * acl_default;
760}; 774};
761 775
776struct nfs4_string {
777 unsigned int len;
778 char *data;
779};
780
762#ifdef CONFIG_NFS_V4 781#ifdef CONFIG_NFS_V4
763 782
764typedef u64 clientid4; 783typedef u64 clientid4;
@@ -942,18 +961,13 @@ struct nfs4_server_caps_arg {
942}; 961};
943 962
944struct nfs4_server_caps_res { 963struct nfs4_server_caps_res {
945 u32 attr_bitmask[2]; 964 u32 attr_bitmask[3];
946 u32 acl_bitmask; 965 u32 acl_bitmask;
947 u32 has_links; 966 u32 has_links;
948 u32 has_symlinks; 967 u32 has_symlinks;
949 struct nfs4_sequence_res seq_res; 968 struct nfs4_sequence_res seq_res;
950}; 969};
951 970
952struct nfs4_string {
953 unsigned int len;
954 char *data;
955};
956
957#define NFS4_PATHNAME_MAXCOMPONENTS 512 971#define NFS4_PATHNAME_MAXCOMPONENTS 512
958struct nfs4_pathname { 972struct nfs4_pathname {
959 unsigned int ncomponents; 973 unsigned int ncomponents;
@@ -1060,6 +1074,7 @@ struct server_scope {
1060struct nfs41_exchange_id_res { 1074struct nfs41_exchange_id_res {
1061 struct nfs_client *client; 1075 struct nfs_client *client;
1062 u32 flags; 1076 u32 flags;
1077 struct server_scope *server_scope;
1063}; 1078};
1064 1079
1065struct nfs41_create_session_args { 1080struct nfs41_create_session_args {
@@ -1083,6 +1098,34 @@ struct nfs41_reclaim_complete_args {
1083struct nfs41_reclaim_complete_res { 1098struct nfs41_reclaim_complete_res {
1084 struct nfs4_sequence_res seq_res; 1099 struct nfs4_sequence_res seq_res;
1085}; 1100};
1101
1102#define SECINFO_STYLE_CURRENT_FH 0
1103#define SECINFO_STYLE_PARENT 1
1104struct nfs41_secinfo_no_name_args {
1105 int style;
1106 struct nfs4_sequence_args seq_args;
1107};
1108
1109struct nfs41_test_stateid_args {
1110 nfs4_stateid *stateid;
1111 struct nfs4_sequence_args seq_args;
1112};
1113
1114struct nfs41_test_stateid_res {
1115 unsigned int status;
1116 struct nfs4_sequence_res seq_res;
1117};
1118
1119struct nfs41_free_stateid_args {
1120 nfs4_stateid *stateid;
1121 struct nfs4_sequence_args seq_args;
1122};
1123
1124struct nfs41_free_stateid_res {
1125 unsigned int status;
1126 struct nfs4_sequence_res seq_res;
1127};
1128
1086#endif /* CONFIG_NFS_V4_1 */ 1129#endif /* CONFIG_NFS_V4_1 */
1087 1130
1088struct nfs_page; 1131struct nfs_page;
@@ -1096,6 +1139,7 @@ struct nfs_read_data {
1096 struct rpc_cred *cred; 1139 struct rpc_cred *cred;
1097 struct nfs_fattr fattr; /* fattr storage */ 1140 struct nfs_fattr fattr; /* fattr storage */
1098 struct list_head pages; /* Coalesced read requests */ 1141 struct list_head pages; /* Coalesced read requests */
1142 struct list_head list; /* lists of struct nfs_read_data */
1099 struct nfs_page *req; /* multi ops per nfs_page */ 1143 struct nfs_page *req; /* multi ops per nfs_page */
1100 struct page **pagevec; 1144 struct page **pagevec;
1101 unsigned int npages; /* Max length of pagevec */ 1145 unsigned int npages; /* Max length of pagevec */
@@ -1119,6 +1163,7 @@ struct nfs_write_data {
1119 struct nfs_fattr fattr; 1163 struct nfs_fattr fattr;
1120 struct nfs_writeverf verf; 1164 struct nfs_writeverf verf;
1121 struct list_head pages; /* Coalesced requests we wish to flush */ 1165 struct list_head pages; /* Coalesced requests we wish to flush */
1166 struct list_head list; /* lists of struct nfs_write_data */
1122 struct nfs_page *req; /* multi ops per nfs_page */ 1167 struct nfs_page *req; /* multi ops per nfs_page */
1123 struct page **pagevec; 1168 struct page **pagevec;
1124 unsigned int npages; /* Max length of pagevec */ 1169 unsigned int npages; /* Max length of pagevec */