Message ID | 20231124060644.576611-16-viro@zeniv.linux.org.uk |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp933758vqx; Thu, 23 Nov 2023 22:10:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IFI6/za8M7dVyuCOT8hhRRp+QsLn+beiLc1GtiOrCc4q97wJKgdsMculTqV1gsDsmh2Nosk X-Received: by 2002:a05:6808:218c:b0:3a7:4161:44ee with SMTP id be12-20020a056808218c00b003a7416144eemr2232795oib.6.1700806257317; Thu, 23 Nov 2023 22:10:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700806257; cv=none; d=google.com; s=arc-20160816; b=FEFxPbPVWDjrrlHIIZ5eajOT27ZckPkibEUXXMBwgnVhsR0GG5gKTtX1vEuoSZkFCf a0IpsBf9up4YYrYSvfa9bkYpDyDOD7yX2KjQAoWNyiJpQKOiksqSgnPhm/K70nDeko0a vC8LMLFdsyjdMEPORG6j+FVvb2FEMw8ame411vDbUkgagLK8qB65DK1+hzGGHtJMDtk5 82KrAEtNgwaa+c6lBT9Tl0C7eHE16r9g2gqWZQEMyWZjtfNUtkUUPXOc6Nxf7/aB0vBR S2wnhlwhoUAU+IwNnhD5rtpwSXvDHEC3+uv6UdMIp5CnGJkAXGwcdKIGRBTK+sFi/qfB EUeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LmN7YWFVeedmNnhXo1eJlBUZcdYWMPMK9OY6elEEKrk=; fh=vDsv/0Rb6aybIi/Xas2DR+uQpFXMLtn4no3J1t38V0s=; b=M7gTPJULE+3DnEEwTR4lYiXQyrzT+7ILA+CYDlOFuRUXnzLDRhLc6aSVzMQt4W6rg2 Tm2U48zwMTuZozdgljD7w98NWNhPrweb46vcRa+5/lxgQY1YLlQKmt/nIiRx0y/KBQ+7 JVEG5RNLbJJo+7UimZ8FNVO9zBP0oADTMu04sGwLmfOcuvY6gR2rbAqQejtUTBgIUUNd fLRjJ/cIozf4iQNYM6YzCznZm5Juvst0PU/a2cn+mUSxUBWQiBzd64mS6DoLW0oHPAxZ QrH3d67VUBnNApgcaNdA8jcU+DUMWvViawG995Xcc2DkdTibm7/6NJV8yOrVJmR3X8GS uAJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=ZTyrOv0D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id by30-20020a056a02059e00b005bddb7249d3si3290039pgb.414.2023.11.23.22.10.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 22:10:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=ZTyrOv0D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id BECF1805A901; Thu, 23 Nov 2023 22:10:51 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231831AbjKXGKi (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Fri, 24 Nov 2023 01:10:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231922AbjKXGJo (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 24 Nov 2023 01:09:44 -0500 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 099684C16; Thu, 23 Nov 2023 22:06:48 -0800 (PST) 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=LmN7YWFVeedmNnhXo1eJlBUZcdYWMPMK9OY6elEEKrk=; b=ZTyrOv0DE6D19HqqHyqvlNOsJ4 X2vB3RXCW234Z4IpK73Fms812wOExb+kaNWU+p+5TpXVbg4Y3FVy+ruXfooZK/o4zdK/DHAPhSoPD 8R0wWqqQinI5JRIbKaKQkosP9bj0jrNi/4DiQAtAtb4U3ZCtBJP4ornQmbtKDQzE2GU7+jGQYYuCK jRfX52dnOlpcGvUzvwmk4rGSvgVA1t7sx60vNhu8h034oaAbNPpszwCLDcTJuIWqzo5yRqO+TYwdA ALtVJbSRsEWLUFuBsQB/ePQFQU3vZcVRPdrmgIEM88ikSXA7k9yJ52WKLYtO6RkoRaHaTDMbX0TKh 7UQO7H7A==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1r6PKx-002Q1g-1H; Fri, 24 Nov 2023 06:06:47 +0000 From: Al Viro <viro@zeniv.linux.org.uk> To: linux-fsdevel@vger.kernel.org Cc: Linus Torvalds <torvalds@linux-foundation.org>, Christian Brauner <brauner@kernel.org>, linux-kernel@vger.kernel.org Subject: [PATCH 16/20] get rid of DCACHE_GENOCIDE Date: Fri, 24 Nov 2023 06:06:40 +0000 Message-Id: <20231124060644.576611-16-viro@zeniv.linux.org.uk> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231124060644.576611-1-viro@zeniv.linux.org.uk> References: <20231124060553.GA575483@ZenIV> <20231124060644.576611-1-viro@zeniv.linux.org.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Al Viro <viro@ftp.linux.org.uk> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 23 Nov 2023 22:10:52 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783424622005906018 X-GMAIL-MSGID: 1783424622005906018 |
Series |
[01/20] selinux: saner handling of policy reloads
|
|
Commit Message
Al Viro
Nov. 24, 2023, 6:06 a.m. UTC
... now that we never call d_genocide() other than from kill_litter_super()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
fs/dcache.c | 5 +----
include/linux/dcache.h | 1 -
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/fs/dcache.c b/fs/dcache.c index 1296a3fa4f93..440b46851f52 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -3196,10 +3196,7 @@ static enum d_walk_ret d_genocide_kill(void *data, struct dentry *dentry) if (d_unhashed(dentry) || !dentry->d_inode) return D_WALK_SKIP; - if (!(dentry->d_flags & DCACHE_GENOCIDE)) { - dentry->d_flags |= DCACHE_GENOCIDE; - dentry->d_lockref.count--; - } + dentry->d_lockref.count--; } return D_WALK_CONTINUE; } diff --git a/include/linux/dcache.h b/include/linux/dcache.h index b4324d47f249..981f529c6cb5 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h @@ -173,7 +173,6 @@ struct dentry_operations { #define DCACHE_DONTCACHE BIT(7) /* Purge from memory on final dput() */ #define DCACHE_CANT_MOUNT BIT(8) -#define DCACHE_GENOCIDE BIT(9) #define DCACHE_SHRINK_LIST BIT(10) #define DCACHE_OP_WEAK_REVALIDATE BIT(11)