diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2018-03-20 23:43:14 +0300 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2018-04-10 23:06:22 +0300 |
commit | 9f7682728728114ed99d8f127f0e1ce3ef9ba857 (patch) | |
tree | eaa2fcf319f8cf953959c5070285bf04f6262c7a /fs/nfs/nfs4proc.c | |
parent | f50862423f547f8506d69b6e4fc53be53288244c (diff) | |
download | linux-9f7682728728114ed99d8f127f0e1ce3ef9ba857.tar.xz |
NFS: Move the delegation return down into nfs4_proc_link()
Move the delegation return out of generic code.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r-- | fs/nfs/nfs4proc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 71f2916f93ff..f4216b6b01c9 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -4318,6 +4318,8 @@ static int _nfs4_proc_link(struct inode *inode, struct inode *dir, const struct } arg.bitmask = nfs4_bitmask(server, res.label); + nfs4_inode_return_delegation(inode); + status = nfs4_call_sync(server->client, server, &msg, &arg.seq_args, &res.seq_res, 1); if (!status) { update_changeattr(dir, &res.cinfo, res.fattr->time_start); |