From mboxrd@z Thu Jan 1 00:00:00 1970 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 640142BE7CD; Thu, 30 Oct 2025 06:24:23 +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=1761805465; cv=none; b=oLCn/Kr2YrvJ4FnHZ6YZLIbZlebu4HzhnYcp3Qv06dob64MJP4raW3OWQ38qONkAjz+58koFZo+EslfIttd58T8YYsvfgJzvxUmJGEynYZ4LZgf5Ybl4PQACPWSxiiMMWiARiLkl6ZGBt1L+a7MnFSjpplKjALtBytF2xzARNrM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761805465; c=relaxed/simple; bh=6ZbflJkG3X9g3r880e4radul4Mz1Y0GMGOn08GlO9cQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kA/7OWQULcVHKw7sLzF9IkJACvjmTr1dIjQM5ICebwTKr65jVnpYqrc5q6+XDuk/hFa3G1yjos/PeZzhMLW8O7WbOt7vow7zggS92M+PYeT4te0pgj4BKvsOFEdVwI5NW7T21EMGF6llNSwtFhjqRk6kzFOwXL6AluTqGCm87J8= 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=tHaRpogp; 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="tHaRpogp" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=2o4fP7/qPdDmNhS4uzPUYDyvsGd6WoXP2VggTW0el8w=; b=tHaRpogpBdp7+I1+zeafpFRSxG kg3sb/+JxLgdtSbCLYvpOr2JnAkLeBr0wzwX/LPbhcAva+z1b24EhyCGgJg834obEFlob1H91ngo1 GZOHv69SQnmSY8WG4Ji/OypavgrYdbO30JJEgAeyrnDDP+Lh2fbHLQtJCb5xTsMGOgUxDph260Dxl tyrD/uzNKb+ABW1iliV4CMVN3YyibSdIUzD+sKLaBOC9dK2NS21TwNqH1fpazGp4VS4/BHsODqU2z JaSkFiqJM5mTApgZB5+Ys023clXRczl9cOMvroMoFVrW2AYjpCivwOb0L8zYJdDXYHB/+UfqAK5JM gjX/mk+Q==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1vEM56-0000000909w-0QYX; Thu, 30 Oct 2025 06:24:20 +0000 Date: Thu, 30 Oct 2025 06:24:20 +0000 From: Al Viro To: NeilBrown Cc: Christian Brauner , Amir Goldstein , Jan Kara , linux-fsdevel@vger.kernel.org, Jeff Layton , Chris Mason , David Sterba , David Howells , Greg Kroah-Hartman , "Rafael J. Wysocki" , Danilo Krummrich , Tyler Hicks , Miklos Szeredi , Chuck Lever , Olga Kornievskaia , Dai Ngo , Namjae Jeon , Steve French , Sergey Senozhatsky , Carlos Maiolino , John Johansen , Paul Moore , James Morris , "Serge E. Hallyn" , Stephen Smalley , Ondrej Mosnacek , Mateusz Guzik , Lorenzo Stoakes , Stefan Berger , "Darrick J. Wong" , linux-kernel@vger.kernel.org, netfs@lists.linux.dev, ecryptfs@vger.kernel.org, linux-nfs@vger.kernel.org, linux-unionfs@vger.kernel.org, linux-cifs@vger.kernel.org, linux-xfs@vger.kernel.org, apparmor@lists.ubuntu.com, linux-security-module@vger.kernel.org, selinux@vger.kernel.org Subject: Re: [PATCH v4 12/14] ecryptfs: use new start_creating/start_removing APIs Message-ID: <20251030062420.GX2441659@ZenIV> References: <20251029234353.1321957-1-neilb@ownmail.net> <20251029234353.1321957-13-neilb@ownmail.net> Precedence: bulk X-Mailing-List: linux-xfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251029234353.1321957-13-neilb@ownmail.net> Sender: Al Viro On Thu, Oct 30, 2025 at 10:31:12AM +1100, NeilBrown wrote: > +static struct dentry *ecryptfs_start_creating_dentry(struct dentry *dentry) > { > - struct dentry *lower_dir_dentry; > + struct dentry *parent = dget_parent(dentry->d_parent); "Grab the reference to grandparent"?