diff options
Diffstat (limited to 'include/linux/nfs_xdr.h')
-rw-r--r-- | include/linux/nfs_xdr.h | 47 |
1 files changed, 19 insertions, 28 deletions
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h index 3e8fc1fe585b..5875001928f9 100644 --- a/include/linux/nfs_xdr.h +++ b/include/linux/nfs_xdr.h | |||
@@ -491,18 +491,6 @@ struct nfs4_delegreturnres { | |||
491 | /* | 491 | /* |
492 | * Arguments to the read call. | 492 | * Arguments to the read call. |
493 | */ | 493 | */ |
494 | struct nfs_readargs { | ||
495 | struct nfs4_sequence_args seq_args; | ||
496 | struct nfs_fh * fh; | ||
497 | struct nfs_open_context *context; | ||
498 | struct nfs_lock_context *lock_context; | ||
499 | nfs4_stateid stateid; | ||
500 | __u64 offset; | ||
501 | __u32 count; | ||
502 | unsigned int pgbase; | ||
503 | struct page ** pages; | ||
504 | }; | ||
505 | |||
506 | struct nfs_readres { | 494 | struct nfs_readres { |
507 | struct nfs4_sequence_res seq_res; | 495 | struct nfs4_sequence_res seq_res; |
508 | struct nfs_fattr * fattr; | 496 | struct nfs_fattr * fattr; |
@@ -513,20 +501,6 @@ struct nfs_readres { | |||
513 | /* | 501 | /* |
514 | * Arguments to the write call. | 502 | * Arguments to the write call. |
515 | */ | 503 | */ |
516 | struct nfs_writeargs { | ||
517 | struct nfs4_sequence_args seq_args; | ||
518 | struct nfs_fh * fh; | ||
519 | struct nfs_open_context *context; | ||
520 | struct nfs_lock_context *lock_context; | ||
521 | nfs4_stateid stateid; | ||
522 | __u64 offset; | ||
523 | __u32 count; | ||
524 | enum nfs3_stable_how stable; | ||
525 | unsigned int pgbase; | ||
526 | struct page ** pages; | ||
527 | const u32 * bitmask; | ||
528 | }; | ||
529 | |||
530 | struct nfs_write_verifier { | 504 | struct nfs_write_verifier { |
531 | char data[8]; | 505 | char data[8]; |
532 | }; | 506 | }; |
@@ -545,6 +519,23 @@ struct nfs_writeres { | |||
545 | }; | 519 | }; |
546 | 520 | ||
547 | /* | 521 | /* |
522 | * Arguments shared by the read and write call. | ||
523 | */ | ||
524 | struct nfs_pgio_args { | ||
525 | struct nfs4_sequence_args seq_args; | ||
526 | struct nfs_fh * fh; | ||
527 | struct nfs_open_context *context; | ||
528 | struct nfs_lock_context *lock_context; | ||
529 | nfs4_stateid stateid; | ||
530 | __u64 offset; | ||
531 | __u32 count; | ||
532 | unsigned int pgbase; | ||
533 | struct page ** pages; | ||
534 | const u32 * bitmask; /* used by write */ | ||
535 | enum nfs3_stable_how stable; /* used by write */ | ||
536 | }; | ||
537 | |||
538 | /* | ||
548 | * Arguments to the commit call. | 539 | * Arguments to the commit call. |
549 | */ | 540 | */ |
550 | struct nfs_commitargs { | 541 | struct nfs_commitargs { |
@@ -1269,7 +1260,7 @@ struct nfs_read_data { | |||
1269 | struct list_head list; | 1260 | struct list_head list; |
1270 | struct rpc_task task; | 1261 | struct rpc_task task; |
1271 | struct nfs_fattr fattr; /* fattr storage */ | 1262 | struct nfs_fattr fattr; /* fattr storage */ |
1272 | struct nfs_readargs args; | 1263 | struct nfs_pgio_args args; |
1273 | struct nfs_readres res; | 1264 | struct nfs_readres res; |
1274 | unsigned long timestamp; /* For lease renewal */ | 1265 | unsigned long timestamp; /* For lease renewal */ |
1275 | int (*read_done_cb) (struct rpc_task *task, struct nfs_read_data *data); | 1266 | int (*read_done_cb) (struct rpc_task *task, struct nfs_read_data *data); |
@@ -1321,7 +1312,7 @@ struct nfs_write_data { | |||
1321 | struct rpc_task task; | 1312 | struct rpc_task task; |
1322 | struct nfs_fattr fattr; | 1313 | struct nfs_fattr fattr; |
1323 | struct nfs_writeverf verf; | 1314 | struct nfs_writeverf verf; |
1324 | struct nfs_writeargs args; /* argument struct */ | 1315 | struct nfs_pgio_args args; /* argument struct */ |
1325 | struct nfs_writeres res; /* result struct */ | 1316 | struct nfs_writeres res; /* result struct */ |
1326 | unsigned long timestamp; /* For lease renewal */ | 1317 | unsigned long timestamp; /* For lease renewal */ |
1327 | int (*write_done_cb) (struct rpc_task *task, struct nfs_write_data *data); | 1318 | int (*write_done_cb) (struct rpc_task *task, struct nfs_write_data *data); |