From: Guo Chao Subject: [PATCH 1/3] Use path_put instead of combination of two functions Date: Fri, 29 Jun 2012 11:29:16 +0800 Message-ID: <1340940558-9893-1-git-send-email-yan@linux.vnet.ibm.com> References: Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: viro@zeniv.linux.org.uk Return-path: Received: from e28smtp07.in.ibm.com ([122.248.162.7]:36855 "EHLO e28smtp07.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753178Ab2F2D30 (ORCPT ); Thu, 28 Jun 2012 23:29:26 -0400 Received: from /spool/local by e28smtp07.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 29 Jun 2012 08:59:22 +0530 In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Signed-off-by: Guo Chao --- 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