diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-03-01 23:51:07 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-03-01 23:51:07 -0500 |
commit | dcf787f39162ce32ca325b3e784aba2d2444619a (patch) | |
tree | 0c9ca31625ed193558758aba2df9e127b2abd81b /fs/namei.c | |
parent | 26567cdbbf1a6b13a92a82332daee00672aa48a9 (diff) |
constify path_get/path_put and fs_struct.c stuff
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/namei.c b/fs/namei.c index dc984fee5532..961bc1268366 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -451,7 +451,7 @@ int inode_permission(struct inode *inode, int mask) | |||
451 | * | 451 | * |
452 | * Given a path increment the reference count to the dentry and the vfsmount. | 452 | * Given a path increment the reference count to the dentry and the vfsmount. |
453 | */ | 453 | */ |
454 | void path_get(struct path *path) | 454 | void path_get(const struct path *path) |
455 | { | 455 | { |
456 | mntget(path->mnt); | 456 | mntget(path->mnt); |
457 | dget(path->dentry); | 457 | dget(path->dentry); |
@@ -464,7 +464,7 @@ EXPORT_SYMBOL(path_get); | |||
464 | * | 464 | * |
465 | * Given a path decrement the reference count to the dentry and the vfsmount. | 465 | * Given a path decrement the reference count to the dentry and the vfsmount. |
466 | */ | 466 | */ |
467 | void path_put(struct path *path) | 467 | void path_put(const struct path *path) |
468 | { | 468 | { |
469 | dput(path->dentry); | 469 | dput(path->dentry); |
470 | mntput(path->mnt); | 470 | mntput(path->mnt); |