提交 20d4fdc1 编写于 作者: J Jan Engelhardt 提交者: Al Viro

[patch 2/4] fs: make struct file arg to d_path const

Signed-off-by: NJan Engelhardt <jengelh@medozas.de>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 c8e7f449
...@@ -1847,7 +1847,7 @@ char *__d_path(const struct path *path, struct path *root, ...@@ -1847,7 +1847,7 @@ char *__d_path(const struct path *path, struct path *root,
* *
* "buflen" should be positive. Caller holds the dcache_lock. * "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; char *res;
struct path root; struct path root;
......
...@@ -300,7 +300,7 @@ extern int d_validate(struct dentry *, struct dentry *); ...@@ -300,7 +300,7 @@ extern int d_validate(struct dentry *, struct dentry *);
extern char *dynamic_dname(struct dentry *, char *, int, const char *, ...); 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(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); extern char *dentry_path(struct dentry *, char *, int);
/* Allocation counts.. */ /* Allocation counts.. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册