summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2014-03-17 11:06:54 (GMT)
committerTrond Myklebust <trond.myklebust@primarydata.com>2014-03-17 19:14:16 (GMT)
commit96f9d8c0740264c5e2975361389ff2c21f2c5a4d (patch)
tree31cb4f6c6ca48895094c0ea0811a06aae844a5db /include
parent4f14c194a996e75c01e44a8832f1d983ccaeefc0 (diff)
downloadlinux-96f9d8c0740264c5e2975361389ff2c21f2c5a4d.tar.xz
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')
-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 b2fb167..0534184 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;