Skip to content

Commit

Permalink
[patch 2/4] fs: make struct file arg to d_path const
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Jan Engelhardt authored and Al Viro committed Jun 23, 2008
1 parent c8e7f44 commit 20d4fdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fs/dcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -1847,7 +1847,7 @@ char *__d_path(const struct path *path, struct path *root,
*
* "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;
Expand Down
2 changes: 1 addition & 1 deletion include/linux/dcache.h
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ extern int d_validate(struct dentry *, struct dentry *);
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.. */
Expand Down

0 comments on commit 20d4fdc

Please sign in to comment.