aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index adc116c57e14..eda74c42d552 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -726,8 +726,8 @@ static struct nfs4_opendata *nfs4_opendata_alloc(struct path *path,
726 p->o_arg.seqid = nfs_alloc_seqid(&sp->so_seqid); 726 p->o_arg.seqid = nfs_alloc_seqid(&sp->so_seqid);
727 if (p->o_arg.seqid == NULL) 727 if (p->o_arg.seqid == NULL)
728 goto err_free; 728 goto err_free;
729 p->path.mnt = mntget(path->mnt); 729 path_get(path);
730 p->path.dentry = dget(path->dentry); 730 p->path = *path;
731 p->dir = parent; 731 p->dir = parent;
732 p->owner = sp; 732 p->owner = sp;
733 atomic_inc(&sp->so_count); 733 atomic_inc(&sp->so_count);
@@ -1947,8 +1947,8 @@ int nfs4_do_close(struct path *path, struct nfs4_state *state, int wait)
1947 calldata->res.seqid = calldata->arg.seqid; 1947 calldata->res.seqid = calldata->arg.seqid;
1948 calldata->res.server = server; 1948 calldata->res.server = server;
1949 calldata->res.seq_res.sr_slotid = NFS4_MAX_SLOT_TABLE; 1949 calldata->res.seq_res.sr_slotid = NFS4_MAX_SLOT_TABLE;
1950 calldata->path.mnt = mntget(path->mnt); 1950 path_get(path);
1951 calldata->path.dentry = dget(path->dentry); 1951 calldata->path = *path;
1952 1952
1953 msg.rpc_argp = &calldata->arg, 1953 msg.rpc_argp = &calldata->arg,
1954 msg.rpc_resp = &calldata->res, 1954 msg.rpc_resp = &calldata->res,