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
f1d110ca
Commit
f1d110ca
authored
Jan 11, 2009
by
J. Bruce Fields
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nfsd4: remove a forward declaration
Signed-off-by:
J. Bruce Fields
<
bfields@citi.umich.edu
>
parent
2283963f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
43 deletions
+42
-43
fs/nfsd/nfs4state.c
fs/nfsd/nfs4state.c
+42
-43
No files found.
fs/nfsd/nfs4state.c
View file @
f1d110ca
...
@@ -75,7 +75,6 @@ static stateid_t onestateid; /* bits all 1 */
...
@@ -75,7 +75,6 @@ static stateid_t onestateid; /* bits all 1 */
/* forward declarations */
/* forward declarations */
static
struct
nfs4_stateid
*
find_stateid
(
stateid_t
*
stid
,
int
flags
);
static
struct
nfs4_stateid
*
find_stateid
(
stateid_t
*
stid
,
int
flags
);
static
struct
nfs4_delegation
*
find_delegation_stateid
(
struct
inode
*
ino
,
stateid_t
*
stid
);
static
struct
nfs4_delegation
*
find_delegation_stateid
(
struct
inode
*
ino
,
stateid_t
*
stid
);
static
void
release_stateid_lockowners
(
struct
nfs4_stateid
*
open_stp
);
static
char
user_recovery_dirname
[
PATH_MAX
]
=
"/var/lib/nfs/v4recovery"
;
static
char
user_recovery_dirname
[
PATH_MAX
]
=
"/var/lib/nfs/v4recovery"
;
static
void
nfs4_set_recdir
(
char
*
recdir
);
static
void
nfs4_set_recdir
(
char
*
recdir
);
...
@@ -330,6 +329,20 @@ static void release_lock_stateid(struct nfs4_stateid *stp)
...
@@ -330,6 +329,20 @@ static void release_lock_stateid(struct nfs4_stateid *stp)
free_generic_stateid
(
stp
);
free_generic_stateid
(
stp
);
}
}
static
void
release_stateid_lockowners
(
struct
nfs4_stateid
*
open_stp
)
{
struct
nfs4_stateowner
*
lock_sop
;
while
(
!
list_empty
(
&
open_stp
->
st_lockowners
))
{
lock_sop
=
list_entry
(
open_stp
->
st_lockowners
.
next
,
struct
nfs4_stateowner
,
so_perstateid
);
/* list_del(&open_stp->st_lockowners); */
BUG_ON
(
lock_sop
->
so_is_open_owner
);
release_stateowner
(
lock_sop
);
}
}
static
void
release_open_stateid
(
struct
nfs4_stateid
*
stp
)
static
void
release_open_stateid
(
struct
nfs4_stateid
*
stp
)
{
{
unhash_generic_stateid
(
stp
);
unhash_generic_stateid
(
stp
);
...
@@ -338,6 +351,34 @@ static void release_open_stateid(struct nfs4_stateid *stp)
...
@@ -338,6 +351,34 @@ static void release_open_stateid(struct nfs4_stateid *stp)
free_generic_stateid
(
stp
);
free_generic_stateid
(
stp
);
}
}
static
void
unhash_stateowner
(
struct
nfs4_stateowner
*
sop
)
{
struct
nfs4_stateid
*
stp
;
list_del
(
&
sop
->
so_idhash
);
list_del
(
&
sop
->
so_strhash
);
if
(
sop
->
so_is_open_owner
)
list_del
(
&
sop
->
so_perclient
);
list_del
(
&
sop
->
so_perstateid
);
while
(
!
list_empty
(
&
sop
->
so_stateids
))
{
stp
=
list_entry
(
sop
->
so_stateids
.
next
,
struct
nfs4_stateid
,
st_perstateowner
);
if
(
sop
->
so_is_open_owner
)
release_open_stateid
(
stp
);
else
release_lock_stateid
(
stp
);
}
}
static
void
release_stateowner
(
struct
nfs4_stateowner
*
sop
)
{
unhash_stateowner
(
sop
);
list_del
(
&
sop
->
so_close_lru
);
nfs4_put_stateowner
(
sop
);
}
static
inline
void
static
inline
void
renew_client
(
struct
nfs4_client
*
clp
)
renew_client
(
struct
nfs4_client
*
clp
)
{
{
...
@@ -1064,48 +1105,6 @@ alloc_init_open_stateowner(unsigned int strhashval, struct nfs4_client *clp, str
...
@@ -1064,48 +1105,6 @@ alloc_init_open_stateowner(unsigned int strhashval, struct nfs4_client *clp, str
return
sop
;
return
sop
;
}
}
static
void
release_stateid_lockowners
(
struct
nfs4_stateid
*
open_stp
)
{
struct
nfs4_stateowner
*
lock_sop
;
while
(
!
list_empty
(
&
open_stp
->
st_lockowners
))
{
lock_sop
=
list_entry
(
open_stp
->
st_lockowners
.
next
,
struct
nfs4_stateowner
,
so_perstateid
);
/* list_del(&open_stp->st_lockowners); */
BUG_ON
(
lock_sop
->
so_is_open_owner
);
release_stateowner
(
lock_sop
);
}
}
static
void
unhash_stateowner
(
struct
nfs4_stateowner
*
sop
)
{
struct
nfs4_stateid
*
stp
;
list_del
(
&
sop
->
so_idhash
);
list_del
(
&
sop
->
so_strhash
);
if
(
sop
->
so_is_open_owner
)
list_del
(
&
sop
->
so_perclient
);
list_del
(
&
sop
->
so_perstateid
);
while
(
!
list_empty
(
&
sop
->
so_stateids
))
{
stp
=
list_entry
(
sop
->
so_stateids
.
next
,
struct
nfs4_stateid
,
st_perstateowner
);
if
(
sop
->
so_is_open_owner
)
release_open_stateid
(
stp
);
else
release_lock_stateid
(
stp
);
}
}
static
void
release_stateowner
(
struct
nfs4_stateowner
*
sop
)
{
unhash_stateowner
(
sop
);
list_del
(
&
sop
->
so_close_lru
);
nfs4_put_stateowner
(
sop
);
}
static
inline
void
static
inline
void
init_stateid
(
struct
nfs4_stateid
*
stp
,
struct
nfs4_file
*
fp
,
struct
nfsd4_open
*
open
)
{
init_stateid
(
struct
nfs4_stateid
*
stp
,
struct
nfs4_file
*
fp
,
struct
nfsd4_open
*
open
)
{
struct
nfs4_stateowner
*
sop
=
open
->
op_stateowner
;
struct
nfs4_stateowner
*
sop
=
open
->
op_stateowner
;
...
...
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