Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [62.89.141.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 102F22877C2; Tue, 18 Nov 2025 05:16:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.89.141.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763442977; cv=none; b=FAXjNiH4leoJviBv3V8Hb2QPZLZPUq/Q2+22deRmd5QFmBzJMcxqWdLTCUo3FE7J4C4vfky7Jjzf6EbPsMDf0E1p4SkzPwKClHYxZbh7NHyR4SyyIO7LWZMDMEelS/Bw5Y7qux0E27PmfZ18N2ERaPgsboLY5cYHOdohyphyiJM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763442977; c=relaxed/simple; bh=g0DzPIcsJ7FGStG4d77ktIfa76GpIX47vIyEYt5ulTE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tlHj87qFdKIg5npWWkEhqb9aJ/HGzGTvaGASotT9cHMnrAyRxtBuLr/f4rPFNUCGwWdSfGHgxsNIJKFcUMjSsWGHE1lZ+B2YYIhbUggucdc0wugFvwXIFWyDeacCaGUORXI1y1yYZrUDjegQXO2Q65Y2vgC30/tKrQ50JeXYiP4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zeniv.linux.org.uk; spf=none smtp.mailfrom=ftp.linux.org.uk; dkim=pass (2048-bit key) header.d=linux.org.uk header.i=@linux.org.uk header.b=YMQMfC95; arc=none smtp.client-ip=62.89.141.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zeniv.linux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=ftp.linux.org.uk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linux.org.uk header.i=@linux.org.uk header.b="YMQMfC95" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description; bh=0EOMkT/UFsYLOkQCFILn7xjwHlMa0Zq2h7YoVPTnFkU=; b=YMQMfC95UzXpLnsV+MX99bUiC4 cvz/Aak/sdeVYYm1wdUV2YNlDYiycXWNQYdo5idTX2iZSBMODEOrqf4iSHEKVdt1TzvhXFOF8RzX8 IjdaoaRvSduE7wcMeRcl64wQ4BFqwO5ZwHxbzRIzCFv5e1kXQa14bytNI9mbxuasJ7R1jVElyQutN mFeKClenuE+KOJAHjbE9U4qouT6EwdCy+N1wlVRFH4D4GHTd4vxsByBID2Z4RPzSpkigpAVv5ENuw BCETuW6vudii5uC+ts1uwJiaMtJT2YzEASyX1/UfwsObbbvb55Z/pqkAsIEdy3RZhKajBuUQDb7Yg G/fThDHw==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1vLE4W-0000000GESc-0zv6; Tue, 18 Nov 2025 05:16:08 +0000 From: Al Viro To: linux-fsdevel@vger.kernel.org Cc: torvalds@linux-foundation.org, brauner@kernel.org, jack@suse.cz, raven@themaw.net, miklos@szeredi.hu, neil@brown.name, a.hindborg@kernel.org, linux-mm@kvack.org, linux-efi@vger.kernel.org, ocfs2-devel@lists.linux.dev, kees@kernel.org, rostedt@goodmis.org, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, paul@paul-moore.com, casey@schaufler-ca.com, linuxppc-dev@lists.ozlabs.org, john.johansen@canonical.com, selinux@vger.kernel.org, borntraeger@linux.ibm.com, bpf@vger.kernel.org, clm@meta.com Subject: [PATCH v4 30/54] autofs_{rmdir,unlink}: dentry->d_fsdata->dentry == dentry there Date: Tue, 18 Nov 2025 05:15:39 +0000 Message-ID: <20251118051604.3868588-31-viro@zeniv.linux.org.uk> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20251118051604.3868588-1-viro@zeniv.linux.org.uk> References: <20251118051604.3868588-1-viro@zeniv.linux.org.uk> Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Al Viro Signed-off-by: Al Viro --- fs/autofs/root.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/autofs/root.c b/fs/autofs/root.c index 174c7205fee4..39794633d484 100644 --- a/fs/autofs/root.c +++ b/fs/autofs/root.c @@ -623,12 +623,11 @@ static int autofs_dir_symlink(struct mnt_idmap *idmap, static int autofs_dir_unlink(struct inode *dir, struct dentry *dentry) { struct autofs_sb_info *sbi = autofs_sbi(dir->i_sb); - struct autofs_info *ino = autofs_dentry_ino(dentry); struct autofs_info *p_ino; p_ino = autofs_dentry_ino(dentry->d_parent); p_ino->count--; - dput(ino->dentry); + dput(dentry); d_inode(dentry)->i_size = 0; clear_nlink(d_inode(dentry)); @@ -710,7 +709,7 @@ static int autofs_dir_rmdir(struct inode *dir, struct dentry *dentry) p_ino = autofs_dentry_ino(dentry->d_parent); p_ino->count--; - dput(ino->dentry); + dput(dentry); d_inode(dentry)->i_size = 0; clear_nlink(d_inode(dentry)); -- 2.47.3