From: Trond Myklebust Date: Tue, 21 May 2013 13:26:49 +0000 (-0400) Subject: NFSv4.1: Simplify setting the layout header credential X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=5cc2216db844beac6ce78c3e48137cd58911b297;p=deliverable%2Flinux.git 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 --- 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; }