From: Jan Engelhardt Signed-off-by: Jan Engelhardt Cc: Al Viro Signed-off-by: Andrew Morton --- fs/dcache.c | 2 +- include/linux/dcache.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff -puN fs/dcache.c~fs-make-struct-file-arg-to-d_path-const fs/dcache.c --- a/fs/dcache.c~fs-make-struct-file-arg-to-d_path-const +++ a/fs/dcache.c @@ -1948,7 +1948,7 @@ Elong: * * "buflen" should be positive. Caller holds the dcache_lock. */ -char *d_path(struct path *path, char *buf, int buflen) +char *d_path(const struct path *path, char *buf, int buflen) { char *res; struct path root; diff -puN include/linux/dcache.h~fs-make-struct-file-arg-to-d_path-const include/linux/dcache.h --- a/include/linux/dcache.h~fs-make-struct-file-arg-to-d_path-const +++ a/include/linux/dcache.h @@ -302,7 +302,7 @@ extern int d_validate(struct dentry *, s extern char *dynamic_dname(struct dentry *, char *, int, const char *, ...); extern char *__d_path(const struct path *path, struct path *root, char *, int); -extern char *d_path(struct path *, char *, int); +extern char *d_path(const struct path *, char *, int); extern char *dentry_path(struct dentry *, char *, int); /* Allocation counts.. */ _