summaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2013-05-21 09:26:49 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-06-06 16:24:38 -0400
commit5cc2216db844beac6ce78c3e48137cd58911b297 (patch)
treea70c70ed5c844cce63d599d97abbb8db666fc9c7 /fs/nfs/pnfs.c
parent4f0b429df104c8ab41fa1b3013e13e0f95f3da52 (diff)
downloadlinux-5cc2216db844beac6ce78c3e48137cd58911b297.tar.gz
linux-5cc2216db844beac6ce78c3e48137cd58911b297.tar.bz2
linux-5cc2216db844beac6ce78c3e48137cd58911b297.zip
NFSv4.1: Simplify setting the layout header credential
ctx->cred == ctx->state->owner->so_cred, so let's just use the former. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/pnfs.c')
-rw-r--r--fs/nfs/pnfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c
index 89ca75f25721..7bb03c1da234 100644
--- a/fs/nfs/pnfs.c
+++ b/fs/nfs/pnfs.c
@@ -1052,7 +1052,7 @@ alloc_init_layout_hdr(struct inode *ino,
INIT_LIST_HEAD(&lo->plh_segs);
INIT_LIST_HEAD(&lo->plh_bulk_destroy);
lo->plh_inode = ino;
- lo->plh_lc_cred = get_rpccred(ctx->state->owner->so_cred);
+ lo->plh_lc_cred = get_rpccred(ctx->cred);
return lo;
}