constify get_dcookie() and friends

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro
2016-11-20 19:30:18 -05:00
parent 8bd107633b
commit 71215a75ce
4 changed files with 6 additions and 6 deletions

View File

@@ -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;
}