![]() | |||||||||||||
Messages in this thread Patch in this message |
This patch renames _mntput() to something a little more descriptive:
mntput_no_expire().
Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
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);
}
/*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
| ||||||||||||
| Last update: 2005-05-30 12:47 [from the cache] ©2003-2008 | |||||||||||||