diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-11-21 01:30:18 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-12-06 01:01:16 +0100 |
commit | 71215a75ceddf38ba9d4563481da8dd943de10fc (patch) | |
tree | 5ed65751530bbe094ffb9325d1f401506567ce95 /fs/dcookies.c | |
parent | audit_log_{name,link_denied}: constify struct path (diff) | |
download | linux-71215a75ceddf38ba9d4563481da8dd943de10fc.tar.xz linux-71215a75ceddf38ba9d4563481da8dd943de10fc.zip |
constify get_dcookie() and friends
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/dcookies.c')
-rw-r--r-- | fs/dcookies.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/dcookies.c b/fs/dcookies.c index ac44a69fbea9..a26a701ef512 100644 --- a/fs/dcookies.c +++ b/fs/dcookies.c @@ -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; |