summaryrefslogtreecommitdiffstats
path: root/include/linux/nfs_xdr.h
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2014-03-17 07:06:54 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2014-03-17 15:14:16 -0400
commit96f9d8c0740264c5e2975361389ff2c21f2c5a4d (patch)
tree31cb4f6c6ca48895094c0ea0811a06aae844a5db /include/linux/nfs_xdr.h
parent4f14c194a996e75c01e44a8832f1d983ccaeefc0 (diff)
downloadlinux-96f9d8c0740264c5e2975361389ff2c21f2c5a4d.tar.gz
linux-96f9d8c0740264c5e2975361389ff2c21f2c5a4d.tar.bz2
linux-96f9d8c0740264c5e2975361389ff2c21f2c5a4d.zip
nfs: abstract out code needed to complete a sillyrename
The async rename code is currently "polluted" with some parts that are really just for sillyrenames. Add a new "complete" operation vector to the nfs_renamedata to separate out the stuff that just needs to be done for a sillyrename. Signed-off-by: Jeff Layton <jlayton@redhat.com> Tested-by: Anna Schumaker <Anna.Schumaker@netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'include/linux/nfs_xdr.h')
-rw-r--r--include/linux/nfs_xdr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h
index b2fb167b2e6d..0534184b65ce 100644
--- a/include/linux/nfs_xdr.h
+++ b/include/linux/nfs_xdr.h
@@ -1397,6 +1397,7 @@ struct nfs_renamedata {
struct inode *new_dir;
struct dentry *new_dentry;
struct nfs_fattr new_fattr;
+ void (*complete)(struct rpc_task *, struct nfs_renamedata *);
};
struct nfs_access_entry;