projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f0b429
)
NFSv4.1: Simplify setting the layout header credential
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Tue, 21 May 2013 13:26:49 +0000
(09:26 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Thu, 6 Jun 2013 20:24:38 +0000
(16:24 -0400)
ctx->cred == ctx->state->owner->so_cred, so let's just use the former.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/pnfs.c
patch
|
blob
|
history
diff --git
a/fs/nfs/pnfs.c
b/fs/nfs/pnfs.c
index 89ca75f25721344d6e1bc4902e221dca0348afd4..7bb03c1da2349a56f98cd5809536d9fadef66ead 100644
(file)
--- 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;
}