Commit 5cc2216db844beac6ce78c3e48137cd58911b297
1 parent
4f0b429df1
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
fs/nfs/pnfs.c
... | ... | @@ -1052,7 +1052,7 @@ |
1052 | 1052 | INIT_LIST_HEAD(&lo->plh_segs); |
1053 | 1053 | INIT_LIST_HEAD(&lo->plh_bulk_destroy); |
1054 | 1054 | lo->plh_inode = ino; |
1055 | - lo->plh_lc_cred = get_rpccred(ctx->state->owner->so_cred); | |
1055 | + lo->plh_lc_cred = get_rpccred(ctx->cred); | |
1056 | 1056 | return lo; |
1057 | 1057 | } |
1058 | 1058 |