diff options
author | Jeff Layton <jlayton@redhat.com> | 2010-09-17 17:30:25 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-09-17 17:30:25 -0400 |
commit | 920769f031a8aff87b66bdf49d1a0d0988241ef9 (patch) | |
tree | e7a3ecc1ceedabd8559de8235be7b2509abf891b /include | |
parent | 2b484297e48c3fbb1846fc6ea10036d9465273e7 (diff) |
nfs: standardize the rename args container
Each NFS version has its own version of the rename args container.
Standardize them on a common one that's identical to the one NFSv4
uses.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nfs_xdr.h | 39 |
1 files changed, 12 insertions, 27 deletions
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h index 6f345f8af4ae..acb95fb27bcc 100644 --- a/include/linux/nfs_xdr.h +++ b/include/linux/nfs_xdr.h | |||
@@ -400,6 +400,18 @@ struct nfs_removeres { | |||
400 | }; | 400 | }; |
401 | 401 | ||
402 | /* | 402 | /* |
403 | * Common arguments to the rename call | ||
404 | */ | ||
405 | struct nfs_renameargs { | ||
406 | const struct nfs_fh *old_dir; | ||
407 | const struct nfs_fh *new_dir; | ||
408 | const struct qstr *old_name; | ||
409 | const struct qstr *new_name; | ||
410 | const u32 *bitmask; | ||
411 | struct nfs4_sequence_args seq_args; | ||
412 | }; | ||
413 | |||
414 | /* | ||
403 | * Argument struct for decode_entry function | 415 | * Argument struct for decode_entry function |
404 | */ | 416 | */ |
405 | struct nfs_entry { | 417 | struct nfs_entry { |
@@ -434,15 +446,6 @@ struct nfs_createargs { | |||
434 | struct iattr * sattr; | 446 | struct iattr * sattr; |
435 | }; | 447 | }; |
436 | 448 | ||
437 | struct nfs_renameargs { | ||
438 | struct nfs_fh * fromfh; | ||
439 | const char * fromname; | ||
440 | unsigned int fromlen; | ||
441 | struct nfs_fh * tofh; | ||
442 | const char * toname; | ||
443 | unsigned int tolen; | ||
444 | }; | ||
445 | |||
446 | struct nfs_setattrargs { | 449 | struct nfs_setattrargs { |
447 | struct nfs_fh * fh; | 450 | struct nfs_fh * fh; |
448 | nfs4_stateid stateid; | 451 | nfs4_stateid stateid; |
@@ -586,15 +589,6 @@ struct nfs3_mknodargs { | |||
586 | dev_t rdev; | 589 | dev_t rdev; |
587 | }; | 590 | }; |
588 | 591 | ||
589 | struct nfs3_renameargs { | ||
590 | struct nfs_fh * fromfh; | ||
591 | const char * fromname; | ||
592 | unsigned int fromlen; | ||
593 | struct nfs_fh * tofh; | ||
594 | const char * toname; | ||
595 | unsigned int tolen; | ||
596 | }; | ||
597 | |||
598 | struct nfs3_linkargs { | 592 | struct nfs3_linkargs { |
599 | struct nfs_fh * fromfh; | 593 | struct nfs_fh * fromfh; |
600 | struct nfs_fh * tofh; | 594 | struct nfs_fh * tofh; |
@@ -801,15 +795,6 @@ struct nfs4_readlink_res { | |||
801 | struct nfs4_sequence_res seq_res; | 795 | struct nfs4_sequence_res seq_res; |
802 | }; | 796 | }; |
803 | 797 | ||
804 | struct nfs4_rename_arg { | ||
805 | const struct nfs_fh * old_dir; | ||
806 | const struct nfs_fh * new_dir; | ||
807 | const struct qstr * old_name; | ||
808 | const struct qstr * new_name; | ||
809 | const u32 * bitmask; | ||
810 | struct nfs4_sequence_args seq_args; | ||
811 | }; | ||
812 | |||
813 | struct nfs4_rename_res { | 798 | struct nfs4_rename_res { |
814 | const struct nfs_server * server; | 799 | const struct nfs_server * server; |
815 | struct nfs4_change_info old_cinfo; | 800 | struct nfs4_change_info old_cinfo; |