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
bfa85e83
Commit
bfa85e83
authored
Mar 14, 2013
by
J. Bruce Fields
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nfsd4: clientid lookup cleanup
Signed-off-by:
J. Bruce Fields
<
bfields@redhat.com
>
parent
c0293b01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
fs/nfsd/nfs4state.c
fs/nfsd/nfs4state.c
+12
-12
No files found.
fs/nfsd/nfs4state.c
View file @
bfa85e83
...
@@ -1380,12 +1380,12 @@ move_to_confirmed(struct nfs4_client *clp)
...
@@ -1380,12 +1380,12 @@ move_to_confirmed(struct nfs4_client *clp)
}
}
static
struct
nfs4_client
*
static
struct
nfs4_client
*
find_c
onfirmed_client
(
clientid_t
*
clid
,
bool
sessions
,
struct
nfsd_net
*
nn
)
find_c
lient_in_id_table
(
struct
list_head
*
tbl
,
clientid_t
*
clid
,
bool
sessions
)
{
{
struct
nfs4_client
*
clp
;
struct
nfs4_client
*
clp
;
unsigned
int
idhashval
=
clientid_hashval
(
clid
->
cl_id
);
unsigned
int
idhashval
=
clientid_hashval
(
clid
->
cl_id
);
list_for_each_entry
(
clp
,
&
nn
->
conf_id_hash
tbl
[
idhashval
],
cl_idhash
)
{
list_for_each_entry
(
clp
,
&
tbl
[
idhashval
],
cl_idhash
)
{
if
(
same_clid
(
&
clp
->
cl_clientid
,
clid
))
{
if
(
same_clid
(
&
clp
->
cl_clientid
,
clid
))
{
if
((
bool
)
clp
->
cl_minorversion
!=
sessions
)
if
((
bool
)
clp
->
cl_minorversion
!=
sessions
)
return
NULL
;
return
NULL
;
...
@@ -1396,20 +1396,20 @@ find_confirmed_client(clientid_t *clid, bool sessions, struct nfsd_net *nn)
...
@@ -1396,20 +1396,20 @@ find_confirmed_client(clientid_t *clid, bool sessions, struct nfsd_net *nn)
return
NULL
;
return
NULL
;
}
}
static
struct
nfs4_client
*
find_confirmed_client
(
clientid_t
*
clid
,
bool
sessions
,
struct
nfsd_net
*
nn
)
{
struct
list_head
*
tbl
=
nn
->
conf_id_hashtbl
;
return
find_client_in_id_table
(
tbl
,
clid
,
sessions
);
}
static
struct
nfs4_client
*
static
struct
nfs4_client
*
find_unconfirmed_client
(
clientid_t
*
clid
,
bool
sessions
,
struct
nfsd_net
*
nn
)
find_unconfirmed_client
(
clientid_t
*
clid
,
bool
sessions
,
struct
nfsd_net
*
nn
)
{
{
struct
nfs4_client
*
clp
;
struct
list_head
*
tbl
=
nn
->
unconf_id_hashtbl
;
unsigned
int
idhashval
=
clientid_hashval
(
clid
->
cl_id
);
list_for_each_entry
(
clp
,
&
nn
->
unconf_id_hashtbl
[
idhashval
],
cl_idhash
)
{
return
find_client_in_id_table
(
tbl
,
clid
,
sessions
);
if
(
same_clid
(
&
clp
->
cl_clientid
,
clid
))
{
if
((
bool
)
clp
->
cl_minorversion
!=
sessions
)
return
NULL
;
return
clp
;
}
}
return
NULL
;
}
}
static
bool
clp_used_exchangeid
(
struct
nfs4_client
*
clp
)
static
bool
clp_used_exchangeid
(
struct
nfs4_client
*
clp
)
...
...
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