Message ID | 20240206120951.901001747@rostedt.homelinux.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-54909-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1499621dyb; Tue, 6 Feb 2024 04:24:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IGoFZvXXTATKtGC6Qq8x1tHzXNh3mhliVfOoZNAkm8bNsbdBjNpu53UCteQOfNAyVUixMA+ X-Received: by 2002:a05:651c:220d:b0:2d0:b090:be91 with SMTP id y13-20020a05651c220d00b002d0b090be91mr1877467ljq.6.1707222250706; Tue, 06 Feb 2024 04:24:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707222250; cv=pass; d=google.com; s=arc-20160816; b=z5DHzBLv5fncFZ4ad6mzl8JLBcrl6HiFYIRivdHxe8ea9mfVt6usWSw/NEawa+uryZ CuazTljGScI7iBDkmsFfif6cgERAvOitfmLH/+378khhCleMWCNCimbgo1vnDAKqJHoY P1QD28ZYIGRPYyTWV6UkxiIghcNtZ8wCAPI93sNoHLnHS+UdVJz8cUHBdqsPNvTYpLpT 1/EYTIBqXHWFY6yDwITe+J9vCCEtfR+odI6xDKi3+wDlXnsYttyuLU0BW24WmhEyv8Kd IYN0TQAkIJMNT9L4d3drDlqq2SCgnEeXJwd/c1bv4eytmNgWlL9ggBRQaqYl4tjaHtQf /lHw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:subject:cc:to:from:date:user-agent:message-id; bh=8lURNWKKoUPcQ/ppbGjY8iYp0fTSqUBjsyeTeR/nU/o=; fh=gRrk8HgmudHb1fPCkAX2Zofa2UjNVWZwpqqAosOwwRM=; b=bkiCzxKuL7ZmRDHHOusWNJN3cgnSKzrDm3VwWJEzEniaXiIU5gMI/cHRcEFJOxnQ7b 79Tq8mX99lHp+6zm/s5GyN2SoSd+HnO5mlD7cTPSEaxFWPDtRTyJVy4qvJP08875Hu0T hnp/Zg7XxZIU90K6RZmUNmRm9TAwzN56KxeVtkFLV/ybBcL8bak9znbzGwwmSNU9A6Bx g+OoGE0giwM0Mt5U1p3Fo0pqCHjcVcHogWeCzLO6KWzzDPvcekT0rYRq/NfjX1VKdhdG U0UelMIQbyHQVdx4Eq5g8CpEz6ujtvGrkm56JEntCYEEEgY6W+Ct9+NtbCRe7auYlZ73 F8Wg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-54909-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54909-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCWYeKlORQlbJnYypneekwk+xVl144/+EzXvk9cteCdu/hg+IZMY+5ED9CbvOf6lg3R3alAv+jdkp9G1MNKy3cd+1fTQ0g== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id s16-20020aa7d790000000b0055fe3bf05f7si1077208edq.533.2024.02.06.04.24.10 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 04:24:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54909-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-54909-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54909-ouuuleilei=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4D94F1F229EE for <ouuuleilei@gmail.com>; Tue, 6 Feb 2024 12:24:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 45EFE14A097; Tue, 6 Feb 2024 12:09:35 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A0B4513A249; Tue, 6 Feb 2024 12:09:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707221363; cv=none; b=sgVaxBk79lvxaKYaYY+QDiqYoZsUn6l0MEkrKWxTYJFYF/1BTX0eLgBBdtth2d9DTxls4/zShrWnOzAzcgZoCOkwIb8Q+JYS16DLj3ljdoFRXnr+Ce5oMCOKIUjaYqIN++LrECm7J0V3SqiBy/BaVtg1lZssNpmJev7wiwrZ39U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707221363; c=relaxed/simple; bh=A6km+89cOenaTUCTGM2bbrRlmoPT20kCCDzU5yT3Os4=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=bRyJa1nWC4/f3gZBpwM9Z0updoZwxPefDP0FgmE6eYQaUGUKMJMsOqSXKLd0ZdXcNzwsDPvb03umtvyuR4OpTsvgRU18XjgxQlhXKVa5VWp6wQam+VK9Pt1V2GT2XzRjdExgfB+wxYqp3twwML6edACeN9SkCxVWqNFuxSB9KS8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B1FEC43399; Tue, 6 Feb 2024 12:09:23 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.97) (envelope-from <rostedt@rostedt.homelinux.com>) id 1rXKGu-00000006bIL-0CTn; Tue, 06 Feb 2024 07:09:52 -0500 Message-ID: <20240206120951.901001747@rostedt.homelinux.com> User-Agent: quilt/0.67 Date: Tue, 06 Feb 2024 07:09:39 -0500 From: Steven Rostedt <rostedt@goodmis.org> To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Linus Torvalds <torvalds@linux-foundation.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Sasha Levin <sashal@kernel.org>, Masami Hiramatsu <mhiramat@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Subject: [v6.6][PATCH 34/57] eventfs: Fix bitwise fields for "is_events" References: <20240206120905.570408983@rostedt.homelinux.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790152278896237977 X-GMAIL-MSGID: 1790152278896237977 |
Series |
eventfs: Linus's updates for 6.6
|
|
Commit Message
Steven Rostedt
Feb. 6, 2024, 12:09 p.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org> A flag was needed to denote which eventfs_inode was the "events" directory, so a bit was taken from the "nr_entries" field, as there's not that many entries, and 2^30 is plenty. But the bit number for nr_entries was not updated to reflect the bit taken from it, which would add an unnecessary integer to the structure. Link: https://lore.kernel.org/linux-trace-kernel/20240102151832.7ca87275@gandalf.local.home Cc: stable@vger.kernel.org Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Fixes: 7e8358edf503e ("eventfs: Fix file and directory uid and gid ownership") Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org> (cherry picked from commit fd56cd5f6d76e93356d9520cf9dabffe1e3d1aa0) --- fs/tracefs/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/tracefs/internal.h b/fs/tracefs/internal.h index 899e447778ac..42bdeb471a07 100644 --- a/fs/tracefs/internal.h +++ b/fs/tracefs/internal.h @@ -63,7 +63,7 @@ struct eventfs_inode { }; unsigned int is_freed:1; unsigned int is_events:1; - unsigned int nr_entries:31; + unsigned int nr_entries:30; }; static inline struct tracefs_inode *get_tracefs(const struct inode *inode)