aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
authorJan Blunck <jblunck@suse.de>2008-02-14 22:34:31 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-15 00:13:32 -0500
commit429731b1553bacf9a331c260c317a28aaa878edb (patch)
treed9feaea03f5abe2eb3ac6a40cbd4e4e3b4638e6a /fs/namei.c
parentdb74ece990ea59a9ec9f00f8881026059ef5caf5 (diff)
Remove path_release_on_umount()
path_release_on_umount() should only be called from sys_umount(). I merged the function into sys_umount() instead of having in in namei.c. Signed-off-by: Jan Blunck <jblunck@suse.de> Acked-by: Christoph Hellwig <hch@lst.de> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 52703986323a..3ed4d7576d6d 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -368,16 +368,6 @@ void path_release(struct nameidata *nd)
368 mntput(nd->mnt); 368 mntput(nd->mnt);
369} 369}
370 370
371/*
372 * umount() mustn't call path_release()/mntput() as that would clear
373 * mnt_expiry_mark
374 */
375void path_release_on_umount(struct nameidata *nd)
376{
377 dput(nd->dentry);
378 mntput_no_expire(nd->mnt);
379}
380
381/** 371/**
382 * release_open_intent - free up open intent resources 372 * release_open_intent - free up open intent resources
383 * @nd: pointer to nameidata 373 * @nd: pointer to nameidata