From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753527AbdHPCbf (ORCPT ); Tue, 15 Aug 2017 22:31:35 -0400 Received: from icp-osb-irony-out4.external.iinet.net.au ([203.59.1.220]:7064 "EHLO icp-osb-irony-out4.external.iinet.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753499AbdHPCbd (ORCPT ); Tue, 15 Aug 2017 22:31:33 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2AyAQBDrZNZ/0Tj/dxeGgEBAQECAQEBAQgBAQEBg1qBeY4SkBE4AQEBAQEBBoEIIhGWB4ISHIUrAoQ2PxgBAgEBAQEBAQFrKIUZBiNWEBgBBwUCGA4CAkcQBhOKIgyscoImIgKLRQEBCCiBC4IdggKBBYJgineCYQWREIEOjh+UQItdhnyWGB84gQpTLwqHcDM2igIBAQE X-IPAS-Result: A2AyAQBDrZNZ/0Tj/dxeGgEBAQECAQEBAQgBAQEBg1qBeY4SkBE4AQEBAQEBBoEIIhGWB4ISHIUrAoQ2PxgBAgEBAQEBAQFrKIUZBiNWEBgBBwUCGA4CAkcQBhOKIgyscoImIgKLRQEBCCiBC4IdggKBBYJgineCYQWREIEOjh+UQItdhnyWGB84gQpTLwqHcDM2igIBAQE X-IronPort-AV: E=Sophos;i="5.41,380,1498492800"; d="scan'208";a="285016220" Subject: [PATCH 4/5] autofs: drop wrong comment From: Ian Kent To: Andrew Morton Cc: linux-fsdevel , Tomohiro Kusumi , autofs mailing list , Kernel Mailing List Date: Wed, 16 Aug 2017 10:31:31 +0800 Message-ID: <150285069148.4670.17959501481201077445.stgit@pluto.themaw.net> In-Reply-To: <150285067347.4670.11494624644273072003.stgit@pluto.themaw.net> References: <150285067347.4670.11494624644273072003.stgit@pluto.themaw.net> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tomohiro Kusumi This comment was correct when it was added in 8d7b48e0 in 2008, but not after 4e44b685 in 2009 which introduced find_autofs_mount(). Signed-off-by: Tomohiro Kusumi Signed-off-by: Ian Kent --- fs/autofs4/dev-ioctl.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/fs/autofs4/dev-ioctl.c b/fs/autofs4/dev-ioctl.c index b8b66d55266d..a990c9d0f893 100644 --- a/fs/autofs4/dev-ioctl.c +++ b/fs/autofs4/dev-ioctl.c @@ -258,11 +258,6 @@ static int autofs_dev_ioctl_open_mountpoint(const char *name, dev_t devid) if (err) goto out; - /* - * Find autofs super block that has the device number - * corresponding to the autofs fs we want to open. - */ - filp = dentry_open(&path, O_RDONLY, current_cred()); path_put(&path); if (IS_ERR(filp)) {