Skip to content

Commit

Permalink
[PATCH] namespace: rename _mntput to mntput_no_expire
Browse files Browse the repository at this point in the history
This patch renames _mntput() to something a little more descriptive:
mntput_no_expire().

Signed-off-by: Miklos Szeredi <[email protected]>
Acked-by: Christoph Hellwig <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
szmi authored and Linus Torvalds committed Jul 8, 2005
1 parent 55e700b commit 751c404
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down
4 changes: 2 additions & 2 deletions include/linux/mount.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static inline struct vfsmount *mntget(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 (atomic_dec_and_test(&mnt->mnt_count))
Expand All @@ -59,7 +59,7 @@ static inline void mntput(struct vfsmount *mnt)
{
if (mnt) {
mnt->mnt_expiry_mark = 0;
_mntput(mnt);
mntput_no_expire(mnt);
}
}

Expand Down

0 comments on commit 751c404

Please sign in to comment.