Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5cc2216d authored by Trond Myklebust's avatar Trond Myklebust
Browse files

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: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 4f0b429d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}