···295295 * dcookie user still being registered (namely, the reader296296 * of the event buffer).297297 */298298-static inline unsigned long fast_get_dcookie(struct path *path)298298+static inline unsigned long fast_get_dcookie(const struct path *path)299299{300300 unsigned long cookie;301301
+1-1
drivers/oprofile/buffer_sync.c
···206206 * because we cannot reach this code without at least one207207 * dcookie user still being registered (namely, the reader208208 * of the event buffer). */209209-static inline unsigned long fast_get_dcookie(struct path *path)209209+static inline unsigned long fast_get_dcookie(const struct path *path)210210{211211 unsigned long cookie;212212
+2-2
fs/dcookies.c
···9090}919192929393-static struct dcookie_struct *alloc_dcookie(struct path *path)9393+static struct dcookie_struct *alloc_dcookie(const struct path *path)9494{9595 struct dcookie_struct *dcs = kmem_cache_alloc(dcookie_cache,9696 GFP_KERNEL);···113113/* This is the main kernel-side routine that retrieves the cookie114114 * value for a dentry/vfsmnt pair.115115 */116116-int get_dcookie(struct path *path, unsigned long *cookie)116116+int get_dcookie(const struct path *path, unsigned long *cookie)117117{118118 int err = 0;119119 struct dcookie_struct * dcs;
+2-2
include/linux/dcookies.h
···4444 *4545 * Returns 0 on success, with *cookie filled in4646 */4747-int get_dcookie(struct path *path, unsigned long *cookie);4747+int get_dcookie(const struct path *path, unsigned long *cookie);48484949#else5050···5858 return;5959}60606161-static inline int get_dcookie(struct path *path, unsigned long *cookie)6161+static inline int get_dcookie(const struct path *path, unsigned long *cookie)6262{6363 return -ENOSYS;6464}