Received: from fhigh-b6-smtp.messagingengine.com (fhigh-b6-smtp.messagingengine.com [202.12.124.157]) (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 172A130675F for ; Thu, 23 Jul 2026 01:53:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784771625; cv=none; b=h1jmIlDYMgkD8TKYAS4dDBGXvxsdmaeGEG1aQ2SAG0+uPlbQdEsisRni0hmssKTaG46lXcxNGs39kb3MKMbt9YCSleEy58tn6cMj2sIzwJl8fWaJJqkHb5IAgN55vMyM/4cuDMDSJbKiVSQYQMmilJ+5e4/2RZT5iCeUOo5hOjc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784771625; c=relaxed/simple; bh=AIpo2iAQhlfbtifTE6AGWLwY3POUXuspD2JIcaNCeF4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RiSJWN0UeNFU9M8/cb43YCRnhO3tojFOGgZCOt7p8MTbhIHZ7wiqKD0gTcd1Sgnhc1j5yaLfN3wjfQdW4RuN40VNqqVw98uitMGsHhGOkzps8Srj361aHdl/yqbNdFYqp1yItniDvHe5y/aTjaFniROV4j4WtqZR1g1X0XMavnE= 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=hmDxM8Bi; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=o4a9DImu; arc=none smtp.client-ip=202.12.124.157 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="hmDxM8Bi"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="o4a9DImu" Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id 35ECE7A012F; Wed, 22 Jul 2026 21:53:42 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Wed, 22 Jul 2026 21:53:42 -0400 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:message-id:mime-version:reply-to:reply-to:subject :subject:to:to; s=fm2; t=1784771622; x=1784858022; bh=yV8kr3p+6X /5U35/oJ57WcxCxbilvXhM5lKLd5vkd1U=; b=hmDxM8Bi3+fh5+n4+mslmpGHNv H1gtE6KAvPbJ4CRJRDBuT3Zbzknp8Sb3MHJFpHXl24ARTFlnAP3Guc1PxW8LOGig 1v8Zd6BNxYGpPDdz+5rJDin72vGmR2I73nI4QNWbBDoh/670y4dVihIPE11BdpFR 4AoVouY5N2HTHeIbKvqB6d0Cl1OAlBYF1U8htar+NM3JGoEasXXbrb5AtvcTYtN2 AE/YEFJWjIc/IaTZdZDb5a8NwXVGRKgamsOtTFljbXVFMQVepQtkBxgeSMd5BJv+ qYygl1sPE2l6YvW3LQHab/a9fmHbHgn45j4xHGLhJqCVl59LuzXhWz4ktDKA== 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:message-id:mime-version:reply-to:reply-to:subject :subject:to:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1784771622; x=1784858022; bh=yV8kr3p+6X/5U35/oJ57WcxCxbil vXhM5lKLd5vkd1U=; b=o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Proxy: Feedback-ID: i9d664b8f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 22 Jul 2026 21:53:40 -0400 (EDT) From: NeilBrown To: Alexander Viro , Christian Brauner Cc: Jan Kara , linux-fsdevel@vger.kernel.org Subject: [PATCH v2 0/4] VFS: prepare for changes to directory locking Date: Thu, 23 Jul 2026 11:49:45 +1000 Message-ID: <20260723015330.3093207-1-neilb@ownmail.net> X-Mailer: git-send-email 2.50.0.107.gf914562f5916.dirty Reply-To: NeilBrown Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Thanks a lot to Christian for the review. I have address all this issues found. Original intro, slightly modified: These patches are part of some prep work to allow changes to directory locking. The short term goal is to invert the locking order between d_alloc_parallel() and inode_lock() so that d_alloc_parallel() can (only) be called without holding inode_lock(). This particularly requires filesystems not to use d_drop() in the middle of an operation, which particularly requires the d_splice_alias() change. As it will require d_alloc_parallel() to NOT be called under the inode lock, d_alloc_trylock() is added which CAN be used when failure is safe (dcache priming in readdir). Once these land upstream I can submit patches to various filesystems to make use of them. Then when filesystems are ready I can continue the VFS changes. Thanks, NeilBrown [PATCH v2 1/4] VFS: fix various typos in documentation for [PATCH v2 2/4] VFS: enhance d_splice_alias() to handle hashed [PATCH v2 3/4] VFS: introduce d_alloc_trylock() [PATCH v2 4/4] VFS: add d_duplicate()