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
71215a75
Commit
71215a75
authored
Nov 20, 2016
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
constify get_dcookie() and friends
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
8bd10763
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
arch/powerpc/oprofile/cell/spu_task_sync.c
arch/powerpc/oprofile/cell/spu_task_sync.c
+1
-1
drivers/oprofile/buffer_sync.c
drivers/oprofile/buffer_sync.c
+1
-1
fs/dcookies.c
fs/dcookies.c
+2
-2
include/linux/dcookies.h
include/linux/dcookies.h
+2
-2
No files found.
arch/powerpc/oprofile/cell/spu_task_sync.c
View file @
71215a75
...
...
@@ -295,7 +295,7 @@ static int release_cached_info(int spu_index)
* dcookie user still being registered (namely, the reader
* of the event buffer).
*/
static
inline
unsigned
long
fast_get_dcookie
(
struct
path
*
path
)
static
inline
unsigned
long
fast_get_dcookie
(
const
struct
path
*
path
)
{
unsigned
long
cookie
;
...
...
drivers/oprofile/buffer_sync.c
View file @
71215a75
...
...
@@ -206,7 +206,7 @@ void sync_stop(void)
* because we cannot reach this code without at least one
* dcookie user still being registered (namely, the reader
* of the event buffer). */
static
inline
unsigned
long
fast_get_dcookie
(
struct
path
*
path
)
static
inline
unsigned
long
fast_get_dcookie
(
const
struct
path
*
path
)
{
unsigned
long
cookie
;
...
...
fs/dcookies.c
View file @
71215a75
...
...
@@ -90,7 +90,7 @@ static void hash_dcookie(struct dcookie_struct * dcs)
}
static
struct
dcookie_struct
*
alloc_dcookie
(
struct
path
*
path
)
static
struct
dcookie_struct
*
alloc_dcookie
(
const
struct
path
*
path
)
{
struct
dcookie_struct
*
dcs
=
kmem_cache_alloc
(
dcookie_cache
,
GFP_KERNEL
);
...
...
@@ -113,7 +113,7 @@ static struct dcookie_struct *alloc_dcookie(struct path *path)
/* This is the main kernel-side routine that retrieves the cookie
* value for a dentry/vfsmnt pair.
*/
int
get_dcookie
(
struct
path
*
path
,
unsigned
long
*
cookie
)
int
get_dcookie
(
const
struct
path
*
path
,
unsigned
long
*
cookie
)
{
int
err
=
0
;
struct
dcookie_struct
*
dcs
;
...
...
include/linux/dcookies.h
View file @
71215a75
...
...
@@ -44,7 +44,7 @@ void dcookie_unregister(struct dcookie_user * user);
*
* Returns 0 on success, with *cookie filled in
*/
int
get_dcookie
(
struct
path
*
path
,
unsigned
long
*
cookie
);
int
get_dcookie
(
const
struct
path
*
path
,
unsigned
long
*
cookie
);
#else
...
...
@@ -58,7 +58,7 @@ static inline void dcookie_unregister(struct dcookie_user * user)
return
;
}
static
inline
int
get_dcookie
(
struct
path
*
path
,
unsigned
long
*
cookie
)
static
inline
int
get_dcookie
(
const
struct
path
*
path
,
unsigned
long
*
cookie
)
{
return
-
ENOSYS
;
}
...
...
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