From nobody Mon Feb 9 19:25:58 2026 Received: from flow-a6-smtp.messagingengine.com (flow-a6-smtp.messagingengine.com [103.168.172.141]) (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 ECC3932F759; Wed, 4 Feb 2026 05:08:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.141 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770181711; cv=none; b=SKqtFursdJXBnTsccWrShbr1pqLtgS8/MQgfKSt1E2TV2WjIjrLJCHG08KtB/c5MZzsBMCN04UkcL2OCeO4zUgCKC4K9N7tVwmZDgkvecyzeAANaVKAAkRoba3fYPHJqPKzMTGbctnJ9U2oLptt6VfAzkwcWrtknKXmQyNU90nY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770181711; c=relaxed/simple; bh=X3yURENEupz4CUecqxn/1nXh1M8n3fSd3Ij96hU/uvY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BYLw82n439CiMldgUQYQJUHiD0LzB8JkDKu/wJlSzeGfy0gJ6GU9vi24XZ2vGowyiIq/wtaDibcyHsyVuUAtvUKjPGRtekYlMAJr2BKG17pNoSQm+u/wcdBSInTCFfzxo6SD4xyFJbyf4ZRIlFropFsMbZtWTBTqZ5zp2BmoGMU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ownmail.net; spf=pass smtp.mailfrom=ownmail.net; dkim=pass (2048-bit key) header.d=ownmail.net header.i=@ownmail.net header.b=VWDBgqqS; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=rpyLh5/y; arc=none smtp.client-ip=103.168.172.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ownmail.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ownmail.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ownmail.net header.i=@ownmail.net header.b="VWDBgqqS"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="rpyLh5/y" Received: from phl-compute-12.internal (phl-compute-12.internal [10.202.2.52]) by mailflow.phl.internal (Postfix) with ESMTP id 59BA01380783; Wed, 4 Feb 2026 00:08:30 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-12.internal (MEProxy); Wed, 04 Feb 2026 00:08:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ownmail.net; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:reply-to:subject:subject:to:to; s=fm3; t=1770181710; x=1770188910; bh=nbu6leitHLk/a+LhHhFGF+M+ZAOtaZT49soxaSpp/w4=; b= VWDBgqqSFRCwbTr47z3pCBaPLI4Yy770051CjDEfiEaUIdEaPJGP4024DX+gErZy W2512BJG4dCqUd419LPFfzbiLsBf35lQnSg4TRTRk8QX9ao2rKVKkbxH35I5PhVJ B+Rw//Zu0JVY+RNtDJMO+7atD3m5NUZK0WNVidT05e/CC+3GlxvD3JwBQUu7t3nl ro79mi+zNkWbKafKoP0tZ3/Ju6j8Iroq24BqlOcaXMa8EnrKBR3jiTwMfGPyTVpX KoZT168soFmyp/HEMxDBgZIwB6TSW2QylXPyweEuX3bMtC5ezm4PrROHQl80uSoH 8sRpJxPJXk9R+3iAuFMVZg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1770181710; x=1770188910; bh=n bu6leitHLk/a+LhHhFGF+M+ZAOtaZT49soxaSpp/w4=; b=rpyLh5/ysnp0C/Vxh 9xfg9K1SRqftlsE/R2+1mXgaOCn6cydz40zGRMEf8TN+tuy9gVCcdyjRSzeNPSNf HMTnayYqD/UGOtSYHt8JWvX7X4c01jXx3lVRlXKFMozz5pcciI5e1uv5etCJu8uf Zugkloczv4zJS5cVT8TTqYVRuL4iGerwHwJgbTwetUtGl90IbR89XjHUt/V5yCxi tRY+yYG5Ob2q6SVKzXXTn/vCGvNF3QJl9Ykr1q9LxwirZ0t6rSJYS9Nn7NfUU+zh Uhpz0/IYSbMNfGQ2Bz3Lbdy7SROh1GZmgR2AjcsT9Njb6CFt1aUfsK6nA5V/Y+dh 1TrVA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddukedukeeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephffvvefufffkofgjfhhrggfgsedtkeertdertddtnecuhfhrohhmpefpvghilheu rhhofihnuceonhgvihhlsgesohifnhhmrghilhdrnhgvtheqnecuggftrfgrthhtvghrnh epveevkeffudeuvefhieeghffgudektdelkeejiedtjedugfeukedvkeffvdefvddunecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepnhgvihhlsg esohifnhhmrghilhdrnhgvthdpnhgspghrtghpthhtohepvddupdhmohguvgepshhmthhp ohhuthdprhgtphhtthhopehvihhrohesiigvnhhivhdrlhhinhhugidrohhrghdruhhkpd hrtghpthhtohepshgvlhhinhhugiesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphht thhopehlihhnuhigqdhunhhiohhnfhhssehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtg hpthhtoheplhhinhhugidqshgvtghurhhithihqdhmohguuhhlvgesvhhgvghrrdhkvghr nhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhnfhhssehvghgvrhdrkhgvrhhnvg hlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhn vghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqfhhsuggvvhgvlhesvhhgvghrrdhkvg hrnhgvlhdrohhrghdprhgtphhtthhopehmihhklhhoshesshiivghrvgguihdrhhhupdhr tghpthhtohepjhgrtghksehsuhhsvgdrtgii X-ME-Proxy: Feedback-ID: iab3e480c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 4 Feb 2026 00:08:24 -0500 (EST) From: NeilBrown To: Christian Brauner , Alexander Viro , David Howells , Jan Kara , Chuck Lever , Jeff Layton , Miklos Szeredi , Amir Goldstein , John Johansen , Paul Moore , James Morris , "Serge E. Hallyn" , Stephen Smalley Cc: linux-kernel@vger.kernel.org, netfs@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-unionfs@vger.kernel.org, apparmor@lists.ubuntu.com, linux-security-module@vger.kernel.org, selinux@vger.kernel.org Subject: [PATCH 03/13] libfs: change simple_done_creating() to use end_creating() Date: Wed, 4 Feb 2026 15:57:47 +1100 Message-ID: <20260204050726.177283-4-neilb@ownmail.net> X-Mailer: git-send-email 2.50.0.107.gf914562f5916.dirty In-Reply-To: <20260204050726.177283-1-neilb@ownmail.net> References: <20260204050726.177283-1-neilb@ownmail.net> Reply-To: NeilBrown Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: NeilBrown simple_done_creating() and end_creating() are identical. So change the former to use the latter. This further centralises unlocking of directories. Signed-off-by: NeilBrown --- fs/libfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/libfs.c b/fs/libfs.c index f1860dff86f2..db18b53fc189 100644 --- a/fs/libfs.c +++ b/fs/libfs.c @@ -2318,7 +2318,6 @@ EXPORT_SYMBOL(simple_start_creating); /* parent must have been held exclusive since simple_start_creating() */ void simple_done_creating(struct dentry *child) { - inode_unlock(child->d_parent->d_inode); - dput(child); + end_creating(child); } EXPORT_SYMBOL(simple_done_creating); --=20 2.50.0.107.gf914562f5916.dirty