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 /fs/nfs/proc.c | |
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 'fs/nfs/proc.c')
-rw-r--r-- | fs/nfs/proc.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/fs/nfs/proc.c b/fs/nfs/proc.c index 4ef39ae88ea5..0aff10c3bbce 100644 --- a/fs/nfs/proc.c +++ b/fs/nfs/proc.c | |||
@@ -370,12 +370,10 @@ nfs_proc_rename(struct inode *old_dir, struct qstr *old_name, | |||
370 | struct inode *new_dir, struct qstr *new_name) | 370 | struct inode *new_dir, struct qstr *new_name) |
371 | { | 371 | { |
372 | struct nfs_renameargs arg = { | 372 | struct nfs_renameargs arg = { |
373 | .fromfh = NFS_FH(old_dir), | 373 | .old_dir = NFS_FH(old_dir), |
374 | .fromname = old_name->name, | 374 | .old_name = old_name, |
375 | .fromlen = old_name->len, | 375 | .new_dir = NFS_FH(new_dir), |
376 | .tofh = NFS_FH(new_dir), | 376 | .new_name = new_name, |
377 | .toname = new_name->name, | ||
378 | .tolen = new_name->len | ||
379 | }; | 377 | }; |
380 | struct rpc_message msg = { | 378 | struct rpc_message msg = { |
381 | .rpc_proc = &nfs_procedures[NFSPROC_RENAME], | 379 | .rpc_proc = &nfs_procedures[NFSPROC_RENAME], |