This patch renames _mntput() to something a little more descriptive:
mntput_no_expire().
Signed-off-by: Miklos Szeredi <[email protected]>
Index: linux/include/linux/mount.h
===================================================================
--- linux.orig/include/linux/mount.h 2005-05-29 13:42:33.000000000 +0200
+++ linux/include/linux/mount.h 2005-05-29 13:42:37.000000000 +0200
@@ -47,7 +47,7 @@ static inline struct vfsmount *mntget(st
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 (atomic_dec_and_test(&mnt->mnt_count))
@@ -59,7 +59,7 @@ static inline void mntput(struct vfsmoun
{
if (mnt) {
mnt->mnt_expiry_mark = 0;
- _mntput(mnt);
+ mntput_no_expire(mnt);
}
}
Index: linux/fs/namei.c
===================================================================
--- linux.orig/fs/namei.c 2005-05-29 13:42:33.000000000 +0200
+++ linux/fs/namei.c 2005-05-29 13:43:09.000000000 +0200
@@ -314,7 +314,7 @@ void path_release(struct nameidata *nd)
void path_release_on_umount(struct nameidata *nd)
{
dput(nd->dentry);
- _mntput(nd->mnt);
+ mntput_no_expire(nd->mnt);
}
/*