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
d614146d
Commit
d614146d
authored
Jul 28, 2016
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fold dentry_rcuwalk_invalidate() into its only remaining caller
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
1a81a8f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
15 deletions
+2
-15
fs/dcache.c
fs/dcache.c
+2
-15
No files found.
fs/dcache.c
View file @
d614146d
...
...
@@ -316,20 +316,6 @@ static void dentry_free(struct dentry *dentry)
call_rcu
(
&
dentry
->
d_u
.
d_rcu
,
__d_free
);
}
/**
* dentry_rcuwalk_invalidate - invalidate in-progress rcu-walk lookups
* @dentry: the target dentry
* After this call, in-progress rcu-walk path lookup will fail. This
* should be called after unhashing, and after changing d_inode (if
* the dentry has not already been unhashed).
*/
static
inline
void
dentry_rcuwalk_invalidate
(
struct
dentry
*
dentry
)
{
lockdep_assert_held
(
&
dentry
->
d_lock
);
/* Go through am invalidation barrier */
write_seqcount_invalidate
(
&
dentry
->
d_seq
);
}
/*
* Release the dentry's inode, using the filesystem
* d_iput() operation if defined.
...
...
@@ -468,7 +454,8 @@ void __d_drop(struct dentry *dentry)
__hlist_bl_del
(
&
dentry
->
d_hash
);
dentry
->
d_hash
.
pprev
=
NULL
;
hlist_bl_unlock
(
b
);
dentry_rcuwalk_invalidate
(
dentry
);
/* After this call, in-progress rcu-walk path lookup will fail. */
write_seqcount_invalidate
(
&
dentry
->
d_seq
);
}
}
EXPORT_SYMBOL
(
__d_drop
);
...
...
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