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
f0d3b3de
Commit
f0d3b3de
authored
Sep 05, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
constify dcache.c inlined helpers where possible
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
46ea1562
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
include/linux/dcache.h
include/linux/dcache.h
+6
-6
No files found.
include/linux/dcache.h
View file @
f0d3b3de
...
...
@@ -212,7 +212,7 @@ struct dentry_operations {
extern
seqlock_t
rename_lock
;
static
inline
int
dname_external
(
struct
dentry
*
dentry
)
static
inline
int
dname_external
(
const
struct
dentry
*
dentry
)
{
return
dentry
->
d_name
.
name
!=
dentry
->
d_iname
;
}
...
...
@@ -358,17 +358,17 @@ extern struct dentry *dget_parent(struct dentry *dentry);
* Returns true if the dentry passed is not currently hashed.
*/
static
inline
int
d_unhashed
(
struct
dentry
*
dentry
)
static
inline
int
d_unhashed
(
const
struct
dentry
*
dentry
)
{
return
hlist_bl_unhashed
(
&
dentry
->
d_hash
);
}
static
inline
int
d_unlinked
(
struct
dentry
*
dentry
)
static
inline
int
d_unlinked
(
const
struct
dentry
*
dentry
)
{
return
d_unhashed
(
dentry
)
&&
!
IS_ROOT
(
dentry
);
}
static
inline
int
cant_mount
(
struct
dentry
*
dentry
)
static
inline
int
cant_mount
(
const
struct
dentry
*
dentry
)
{
return
(
dentry
->
d_flags
&
DCACHE_CANT_MOUNT
);
}
...
...
@@ -382,12 +382,12 @@ static inline void dont_mount(struct dentry *dentry)
extern
void
dput
(
struct
dentry
*
);
static
inline
bool
d_managed
(
struct
dentry
*
dentry
)
static
inline
bool
d_managed
(
const
struct
dentry
*
dentry
)
{
return
dentry
->
d_flags
&
DCACHE_MANAGED_DENTRY
;
}
static
inline
bool
d_mountpoint
(
struct
dentry
*
dentry
)
static
inline
bool
d_mountpoint
(
const
struct
dentry
*
dentry
)
{
return
dentry
->
d_flags
&
DCACHE_MOUNTED
;
}
...
...
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