mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/3] Use path_put instead of combination of two functions
@ 2012-06-29  3:29 Guo Chao
  2012-06-29  3:29 ` [PATCH 2/3] Check node type at the beginning of mknodat Guo Chao
  2012-06-29  3:29 ` [PATCH 3/3] fs/namei: fix some typos Guo Chao
  0 siblings, 2 replies; 3+ messages in thread
From: Guo Chao @ 2012-06-29  3:29 UTC (permalink / raw)
  To: viro; +Cc: linux-fsdevel, linux-kernel


Signed-off-by: Guo Chao <yan@linux.vnet.ibm.com>
---
 fs/namei.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/namei.c b/fs/namei.c
index 0e1b9c3..8dccfcc 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -846,8 +846,7 @@ int follow_down_one(struct path *path)
 
 	mounted = lookup_mnt(path);
 	if (mounted) {
-		dput(path->dentry);
-		mntput(path->mnt);
+		path_put(path);
 		path->mnt = mounted;
 		path->dentry = dget(mounted->mnt_root);
 		return 1;
-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-06-29  3:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-29  3:29 [PATCH 1/3] Use path_put instead of combination of two functions Guo Chao
2012-06-29  3:29 ` [PATCH 2/3] Check node type at the beginning of mknodat Guo Chao
2012-06-29  3:29 ` [PATCH 3/3] fs/namei: fix some typos Guo Chao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome