Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Upgrade to 4.4.50-rt62
[kvmfornfv.git]
/
kernel
/
fs
/
nfsd
/
nfs4layouts.c
diff --git
a/kernel/fs/nfsd/nfs4layouts.c
b/kernel/fs/nfsd/nfs4layouts.c
index
c9d6c71
..
9eed219
100644
(file)
--- a/
kernel/fs/nfsd/nfs4layouts.c
+++ b/
kernel/fs/nfsd/nfs4layouts.c
@@
-189,10
+189,11
@@
nfsd4_alloc_layout_stateid(struct nfsd4_compound_state *cstate,
struct nfs4_layout_stateid *ls;
struct nfs4_stid *stp;
struct nfs4_layout_stateid *ls;
struct nfs4_stid *stp;
- stp = nfs4_alloc_stid(cstate->clp, nfs4_layout_stateid_cache);
+ stp = nfs4_alloc_stid(cstate->clp, nfs4_layout_stateid_cache,
+ nfsd4_free_layout_stateid);
if (!stp)
return NULL;
if (!stp)
return NULL;
- stp->sc_free = nfsd4_free_layout_stateid;
+
get_nfs4_file(fp);
stp->sc_file = fp;
get_nfs4_file(fp);
stp->sc_file = fp;