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
Kirill Smelkov
linux
Commits
b02ba0b6
Commit
b02ba0b6
authored
Apr 03, 2013
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFSv4: Clean up nfs_expire_all_delegations
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
5c31e236
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
16 deletions
+27
-16
fs/nfs/delegation.c
fs/nfs/delegation.c
+27
-16
No files found.
fs/nfs/delegation.c
View file @
b02ba0b6
...
@@ -514,6 +514,33 @@ static bool nfs_server_mark_return_all_delegations(struct nfs_server *server)
...
@@ -514,6 +514,33 @@ static bool nfs_server_mark_return_all_delegations(struct nfs_server *server)
return
ret
;
return
ret
;
}
}
static
void
nfs_client_mark_return_all_delegations
(
struct
nfs_client
*
clp
)
{
struct
nfs_server
*
server
;
rcu_read_lock
();
list_for_each_entry_rcu
(
server
,
&
clp
->
cl_superblocks
,
client_link
)
nfs_server_mark_return_all_delegations
(
server
);
rcu_read_unlock
();
}
static
void
nfs_delegation_run_state_manager
(
struct
nfs_client
*
clp
)
{
if
(
test_bit
(
NFS4CLNT_DELEGRETURN
,
&
clp
->
cl_state
))
nfs4_schedule_state_manager
(
clp
);
}
/**
* nfs_expire_all_delegations
* @clp: client to process
*
*/
void
nfs_expire_all_delegations
(
struct
nfs_client
*
clp
)
{
nfs_client_mark_return_all_delegations
(
clp
);
nfs_delegation_run_state_manager
(
clp
);
}
/**
/**
* nfs_super_return_all_delegations - return delegations for one superblock
* nfs_super_return_all_delegations - return delegations for one superblock
* @sb: sb to process
* @sb: sb to process
...
@@ -561,12 +588,6 @@ static void nfs_client_mark_return_all_delegation_types(struct nfs_client *clp,
...
@@ -561,12 +588,6 @@ static void nfs_client_mark_return_all_delegation_types(struct nfs_client *clp,
rcu_read_unlock
();
rcu_read_unlock
();
}
}
static
void
nfs_delegation_run_state_manager
(
struct
nfs_client
*
clp
)
{
if
(
test_bit
(
NFS4CLNT_DELEGRETURN
,
&
clp
->
cl_state
))
nfs4_schedule_state_manager
(
clp
);
}
void
nfs_remove_bad_delegation
(
struct
inode
*
inode
)
void
nfs_remove_bad_delegation
(
struct
inode
*
inode
)
{
{
struct
nfs_delegation
*
delegation
;
struct
nfs_delegation
*
delegation
;
...
@@ -591,16 +612,6 @@ void nfs_expire_all_delegation_types(struct nfs_client *clp, fmode_t flags)
...
@@ -591,16 +612,6 @@ void nfs_expire_all_delegation_types(struct nfs_client *clp, fmode_t flags)
nfs_delegation_run_state_manager
(
clp
);
nfs_delegation_run_state_manager
(
clp
);
}
}
/**
* nfs_expire_all_delegations
* @clp: client to process
*
*/
void
nfs_expire_all_delegations
(
struct
nfs_client
*
clp
)
{
nfs_expire_all_delegation_types
(
clp
,
FMODE_READ
|
FMODE_WRITE
);
}
static
void
nfs_mark_return_unreferenced_delegations
(
struct
nfs_server
*
server
)
static
void
nfs_mark_return_unreferenced_delegations
(
struct
nfs_server
*
server
)
{
{
struct
nfs_delegation
*
delegation
;
struct
nfs_delegation
*
delegation
;
...
...
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