Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp154105lqq; Wed, 12 Jun 2024 21:18:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWKzrx3OwI8P31yPghDxXW/IsCn0XGeYFEvZ0qGPB/zWIoIKuYGTA6dfewnpf9H1HYbV7ZsKPPQR7Auu7NXYfmqUzcJ/HHTaptdRn1WSA== X-Google-Smtp-Source: AGHT+IEdEy29sxBM0P02gfwHzLN5mA0kLOw4S+aVEGJB6b1UwIcfbt9xYVwuQYODNEN62xfljcXv X-Received: by 2002:ad4:5110:0:b0:6b2:a710:301c with SMTP id 6a1803df08f44-6b2a710323dmr5586126d6.3.1718252298446; Wed, 12 Jun 2024 21:18:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718252298; cv=pass; d=google.com; s=arc-20160816; b=fAjnQFLLPuc+g2jpo+of61+yPRM0vIzi9dYa6ioMGDt8wmX318r7vQ9PdISl5+LanP fmfsrYEJEbfLJtAisLDiFyFVKHzAW6AOypwa8BiCostL6W6uJcpk5uw4RWbmMIM45JnG 4Q+zGZUzJU4tM0Z02nQx8HLKGik84/16+sJtgeZppa8Jy79K3xwuifY0ZBHeaNuNwmfQ ahgPd5unBnxFN0bx4WOaB4DkLWSQxuYW1EeEnCMNk4pqWX/p/FIqMlAyIxa163mqwVIj InTONk4DOF4JaJDBepbX20p24Rp3pOIypAum6NiPpUg0h8aHi0LNzYyI66KemPKCt9UO qEFA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=NpBIbWSgQHLAIBUajMrBNhcehFY7KD/Xz44sbnRKseI=; fh=Mys3y4MwsHRytUQMpdfGBn3oGRYLcLloxNwkFYMYMmg=; b=pflIlbXnxOJkDfslRrTSnMdPlEedg89vp7lo+7ui8z8dQs9avoNBUSvMOsL9lw/ASl BbPBrCp4oX+N22wrSm8CApuBcTqh/1Tx4z24uHuROha2W++u2yuCNiglXnEEG0q2Wiyw /f/+Dk71JI6qwN2Ms7T+z41QOhm6KKuc03+1YPtPCFtsSLx0orEW+p7/+ocuMjm+qmmp Jirm8xiz3l7Idsh8AoPRbVh/MDvHKeYvbg/AJqd8li+HGZZz5ccCs51s4AL+OR9uaMas 0Jalg1HWSBmrhjKetAH8FdI08cQh+bmFejw20sMSoABExBH4DVEXtcm5CczUg16CjeA4 vDDA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Jp6XYYKZ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-nfs+bounces-3728-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3728-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6b2a5afdbd2si6424446d6.299.2024.06.12.21.18.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 21:18:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3728-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Jp6XYYKZ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-nfs+bounces-3728-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3728-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 327CD1C223D5 for ; Thu, 13 Jun 2024 04:18:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 847E913664B; Thu, 13 Jun 2024 04:17:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Jp6XYYKZ" X-Original-To: linux-nfs@vger.kernel.org Received: from mail-qv1-f46.google.com (mail-qv1-f46.google.com [209.85.219.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 15B35132C3B for ; Thu, 13 Jun 2024 04:17:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718252278; cv=none; b=GOwfSTj5n/CHS66mGNjyyT7BzMjbM/Kiod9/tknR9iD0Wn4WuBuf0RVNwHqYNJ0x2um9jwZxeoJLsFxCIkTAaN9S0r7ZZgSdUn0I/FIwCwWmt6e8XlRDWc/uFU0KfvTBhFQZdMysncloC90a2h1Ut7oeqm2fiAVRrA9iUKwcRhI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718252278; c=relaxed/simple; bh=l/JP3v9x70TAg/NEFnMLNCt9tijubDiHDpNYOyEMc7c=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PWV6QMmpmacH4hoJztgRjPrLvq2nrJSdKyhNBWbqbEZM3w7HQ6sruxmto36Ohui6TbROyOFZ9KBPwgvifwB6V/x+CqOcehV9zhm2qBqH8aPY57n8/nFDQ0KpJOjxIYvYv3oVXKjSC+Dn9575c5X7IxcWUOcKK53OB6xuo7vsQmc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Jp6XYYKZ; arc=none smtp.client-ip=209.85.219.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qv1-f46.google.com with SMTP id 6a1803df08f44-6afc61f9a2eso5957126d6.0 for ; Wed, 12 Jun 2024 21:17:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718252276; x=1718857076; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=NpBIbWSgQHLAIBUajMrBNhcehFY7KD/Xz44sbnRKseI=; b=Jp6XYYKZRnxJpDpwa5OGonrL+/4zy3FEArWH76rY0zebLdx+7mD7xUDTnhOZzxsGid ePD0ZMGEBiCnKifkO1QxXz2WTBzwLaUl9etOJM5nGk1PR8moMZTr3im6fPbxyhw2nKP/ JRmiBcUzzVE2tlwYl364maMOjCGL3CJFm6opmqAG8durJWXM4dJcetQtBK/Ex5HemMLM cxX5XzDlEEg5DkJokwdcpErzX3eMLBXTvqm5l7wEIieq3KlzERyyrPjNGGORVwgWU1sp M0I7vQOx4Nb2hgXQn+vus+vGB/3uHvLmsu9id4kgyAXQvN5/foYeStzg2T3W6t3K2pY1 KzsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718252276; x=1718857076; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NpBIbWSgQHLAIBUajMrBNhcehFY7KD/Xz44sbnRKseI=; b=oPrlcqsGVG1iBK2nBE8C3znS+OemdxEjKl00TCeC49vC7UZmM2/PiPMqRoFAqtg/S7 8tq/PV+o4CG/9k/rF17qy9oJ3R4alUGUwn4w45orcXaGBO78BWqUMSqS++UesXqOOR9w yImMT/FDCjsb4XDKKrLFDels6FlQ7bHNfMsJZcLdyJphvXQHuQntKy659QI48ExxDcG6 WrrEWRcIxv8wC1kMSzcdB7qjUryzs+CgKZhKHalsT/B1cfMP8DIxhkki+N812Z9Kii5l w8MuJJeM3TgibsAlTHqvaZQohyOuIFVKUPpvDnDPkRja6o111+9jVyWMPBNZkB/N/029 hZDA== X-Gm-Message-State: AOJu0YxWRzVEWSsfilKI0XRq2lXsb6Tzw8lYdyDQv3D1zMChu7E/Z9Bc vfnYFG1ayFBDxuiEzUS6nOIpwWNo26clgdwO8WFXEcyOm16NgThJokIB X-Received: by 2002:a0c:df88:0:b0:6b2:a47d:8f2d with SMTP id 6a1803df08f44-6b2a47d915amr21796906d6.24.1718252275677; Wed, 12 Jun 2024 21:17:55 -0700 (PDT) Received: from leira.trondhjem.org (c-68-40-188-158.hsd1.mi.comcast.net. [68.40.188.158]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6b2a5c68ff3sm2851546d6.74.2024.06.12.21.17.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 21:17:55 -0700 (PDT) From: trondmy@gmail.com X-Google-Original-From: trond.myklebust@hammerspace.com To: linux-nfs@vger.kernel.org Subject: [PATCH 19/19] Return the delegation when deleting the sillyrenamed file Date: Thu, 13 Jun 2024 00:11:36 -0400 Message-ID: <20240613041136.506908-20-trond.myklebust@hammerspace.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240613041136.506908-19-trond.myklebust@hammerspace.com> References: <20240613041136.506908-1-trond.myklebust@hammerspace.com> <20240613041136.506908-2-trond.myklebust@hammerspace.com> <20240613041136.506908-3-trond.myklebust@hammerspace.com> <20240613041136.506908-4-trond.myklebust@hammerspace.com> <20240613041136.506908-5-trond.myklebust@hammerspace.com> <20240613041136.506908-6-trond.myklebust@hammerspace.com> <20240613041136.506908-7-trond.myklebust@hammerspace.com> <20240613041136.506908-8-trond.myklebust@hammerspace.com> <20240613041136.506908-9-trond.myklebust@hammerspace.com> <20240613041136.506908-10-trond.myklebust@hammerspace.com> <20240613041136.506908-11-trond.myklebust@hammerspace.com> <20240613041136.506908-12-trond.myklebust@hammerspace.com> <20240613041136.506908-13-trond.myklebust@hammerspace.com> <20240613041136.506908-14-trond.myklebust@hammerspace.com> <20240613041136.506908-15-trond.myklebust@hammerspace.com> <20240613041136.506908-16-trond.myklebust@hammerspace.com> <20240613041136.506908-17-trond.myklebust@hammerspace.com> <20240613041136.506908-18-trond.myklebust@hammerspace.com> <20240613041136.506908-19-trond.myklebust@hammerspace.com> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Trond Myklebust Signed-off-by: Trond Myklebust Signed-off-by: Lance Shelton Signed-off-by: Trond Myklebust --- fs/nfs/unlink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/nfs/unlink.c b/fs/nfs/unlink.c index 0110299643a2..bf77399696a7 100644 --- a/fs/nfs/unlink.c +++ b/fs/nfs/unlink.c @@ -232,6 +232,8 @@ nfs_complete_unlink(struct dentry *dentry, struct inode *inode) dentry->d_fsdata = NULL; spin_unlock(&dentry->d_lock); + NFS_PROTO(inode)->return_delegation(inode); + if (NFS_STALE(inode) || !nfs_call_unlink(dentry, inode, data)) nfs_free_unlinkdata(data); } -- 2.45.2