Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
8be2d234
Commit
8be2d234
authored
Mar 21, 2013
by
J. Bruce Fields
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nfsd4: minor cb_recall simplification
Signed-off-by:
J. Bruce Fields
<
bfields@redhat.com
>
parent
a7823c79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
fs/nfsd/nfs4callback.c
fs/nfsd/nfs4callback.c
+3
-5
No files found.
fs/nfsd/nfs4callback.c
View file @
8be2d234
...
@@ -817,8 +817,7 @@ static bool nfsd41_cb_get_slot(struct nfs4_client *clp, struct rpc_task *task)
...
@@ -817,8 +817,7 @@ static bool nfsd41_cb_get_slot(struct nfs4_client *clp, struct rpc_task *task)
static
void
nfsd4_cb_prepare
(
struct
rpc_task
*
task
,
void
*
calldata
)
static
void
nfsd4_cb_prepare
(
struct
rpc_task
*
task
,
void
*
calldata
)
{
{
struct
nfsd4_callback
*
cb
=
calldata
;
struct
nfsd4_callback
*
cb
=
calldata
;
struct
nfs4_delegation
*
dp
=
container_of
(
cb
,
struct
nfs4_delegation
,
dl_recall
);
struct
nfs4_client
*
clp
=
cb
->
cb_clp
;
struct
nfs4_client
*
clp
=
dp
->
dl_stid
.
sc_client
;
u32
minorversion
=
clp
->
cl_minorversion
;
u32
minorversion
=
clp
->
cl_minorversion
;
cb
->
cb_minorversion
=
minorversion
;
cb
->
cb_minorversion
=
minorversion
;
...
@@ -839,8 +838,7 @@ static void nfsd4_cb_prepare(struct rpc_task *task, void *calldata)
...
@@ -839,8 +838,7 @@ static void nfsd4_cb_prepare(struct rpc_task *task, void *calldata)
static
void
nfsd4_cb_done
(
struct
rpc_task
*
task
,
void
*
calldata
)
static
void
nfsd4_cb_done
(
struct
rpc_task
*
task
,
void
*
calldata
)
{
{
struct
nfsd4_callback
*
cb
=
calldata
;
struct
nfsd4_callback
*
cb
=
calldata
;
struct
nfs4_delegation
*
dp
=
container_of
(
cb
,
struct
nfs4_delegation
,
dl_recall
);
struct
nfs4_client
*
clp
=
cb
->
cb_clp
;
struct
nfs4_client
*
clp
=
dp
->
dl_stid
.
sc_client
;
dprintk
(
"%s: minorversion=%d
\n
"
,
__func__
,
dprintk
(
"%s: minorversion=%d
\n
"
,
__func__
,
clp
->
cl_minorversion
);
clp
->
cl_minorversion
);
...
@@ -863,7 +861,7 @@ static void nfsd4_cb_recall_done(struct rpc_task *task, void *calldata)
...
@@ -863,7 +861,7 @@ static void nfsd4_cb_recall_done(struct rpc_task *task, void *calldata)
{
{
struct
nfsd4_callback
*
cb
=
calldata
;
struct
nfsd4_callback
*
cb
=
calldata
;
struct
nfs4_delegation
*
dp
=
container_of
(
cb
,
struct
nfs4_delegation
,
dl_recall
);
struct
nfs4_delegation
*
dp
=
container_of
(
cb
,
struct
nfs4_delegation
,
dl_recall
);
struct
nfs4_client
*
clp
=
dp
->
dl_stid
.
sc_client
;
struct
nfs4_client
*
clp
=
cb
->
cb_clp
;
struct
rpc_clnt
*
current_rpc_client
=
clp
->
cl_cb_client
;
struct
rpc_clnt
*
current_rpc_client
=
clp
->
cl_cb_client
;
nfsd4_cb_done
(
task
,
calldata
);
nfsd4_cb_done
(
task
,
calldata
);
...
...
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