[PATCH] namespace: rename _mntput to mntput_no_expire

This patch renames _mntput() to something a little more descriptive:
mntput_no_expire().

Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Miklos Szeredi 2005-07-07 17:57:30 -07:00 committed by Linus Torvalds
parent 55e700b924
commit 751c404b8f
2 changed files with 3 additions and 3 deletions

View file

@ -314,7 +314,7 @@ void path_release(struct nameidata *nd)
void path_release_on_umount(struct nameidata *nd) void path_release_on_umount(struct nameidata *nd)
{ {
dput(nd->dentry); dput(nd->dentry);
_mntput(nd->mnt); mntput_no_expire(nd->mnt);
} }
/* /*

View file

@ -47,7 +47,7 @@ static inline struct vfsmount *mntget(struct vfsmount *mnt)
extern void __mntput(struct vfsmount *mnt); extern void __mntput(struct vfsmount *mnt);
static inline void _mntput(struct vfsmount *mnt) static inline void mntput_no_expire(struct vfsmount *mnt)
{ {
if (mnt) { if (mnt) {
if (atomic_dec_and_test(&mnt->mnt_count)) if (atomic_dec_and_test(&mnt->mnt_count))
@ -59,7 +59,7 @@ static inline void mntput(struct vfsmount *mnt)
{ {
if (mnt) { if (mnt) {
mnt->mnt_expiry_mark = 0; mnt->mnt_expiry_mark = 0;
_mntput(mnt); mntput_no_expire(mnt);
} }
} }