Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
6c02eaa1
Commit
6c02eaa1
authored
Feb 02, 2009
by
J. Bruce Fields
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nfsd4: use helper for copying delegation filehandle
Signed-off-by:
J. Bruce Fields
<
bfields@citi.umich.edu
>
parent
a4773c08
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
9 deletions
+5
-9
fs/nfsd/nfs4callback.c
fs/nfsd/nfs4callback.c
+2
-2
fs/nfsd/nfs4state.c
fs/nfsd/nfs4state.c
+1
-3
include/linux/nfsd/state.h
include/linux/nfsd/state.h
+2
-4
No files found.
fs/nfsd/nfs4callback.c
View file @
6c02eaa1
...
...
@@ -218,7 +218,7 @@ static int
encode_cb_recall
(
struct
xdr_stream
*
xdr
,
struct
nfs4_cb_recall
*
cb_rec
)
{
__be32
*
p
;
int
len
=
cb_rec
->
cbr_fh
len
;
int
len
=
cb_rec
->
cbr_fh
.
fh_size
;
RESERVE_SPACE
(
12
+
sizeof
(
cb_rec
->
cbr_stateid
)
+
len
);
WRITE32
(
OP_CB_RECALL
);
...
...
@@ -226,7 +226,7 @@ encode_cb_recall(struct xdr_stream *xdr, struct nfs4_cb_recall *cb_rec)
WRITEMEM
(
&
cb_rec
->
cbr_stateid
.
si_opaque
,
sizeof
(
stateid_opaque_t
));
WRITE32
(
cb_rec
->
cbr_trunc
);
WRITE32
(
len
);
WRITEMEM
(
cb_rec
->
cbr_fhval
,
len
);
WRITEMEM
(
&
cb_rec
->
cbr_fh
.
fh_base
,
len
);
return
0
;
}
...
...
fs/nfsd/nfs4state.c
View file @
6c02eaa1
...
...
@@ -215,9 +215,7 @@ alloc_init_deleg(struct nfs4_client *clp, struct nfs4_stateid *stp, struct svc_f
dp
->
dl_stateid
.
si_stateownerid
=
current_delegid
++
;
dp
->
dl_stateid
.
si_fileid
=
0
;
dp
->
dl_stateid
.
si_generation
=
0
;
dp
->
dl_fhlen
=
current_fh
->
fh_handle
.
fh_size
;
memcpy
(
dp
->
dl_fhval
,
&
current_fh
->
fh_handle
.
fh_base
,
current_fh
->
fh_handle
.
fh_size
);
fh_copy_shallow
(
&
dp
->
dl_fh
,
&
current_fh
->
fh_handle
);
dp
->
dl_time
=
0
;
atomic_set
(
&
dp
->
dl_count
,
1
);
list_add
(
&
dp
->
dl_perfile
,
&
fp
->
fi_delegations
);
...
...
include/linux/nfsd/state.h
View file @
6c02eaa1
...
...
@@ -66,8 +66,7 @@ struct nfs4_cb_recall {
u32
cbr_ident
;
int
cbr_trunc
;
stateid_t
cbr_stateid
;
u32
cbr_fhlen
;
char
cbr_fhval
[
NFS4_FHSIZE
];
struct
knfsd_fh
cbr_fh
;
struct
nfs4_delegation
*
cbr_dp
;
};
...
...
@@ -86,8 +85,7 @@ struct nfs4_delegation {
};
#define dl_stateid dl_recall.cbr_stateid
#define dl_fhlen dl_recall.cbr_fhlen
#define dl_fhval dl_recall.cbr_fhval
#define dl_fh dl_recall.cbr_fh
/* client delegation callback info */
struct
nfs4_callback
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment