Message ID | 20240103015228.487061905@goodmis.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-15050-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp4783865dyb; Tue, 2 Jan 2024 17:52:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IHaDU4qTnYrZZHO1XhksSlHPwwIOwPFSca7qYURRx5ppUNU+XrUfIFxtoBFHziv2tbcTNvl X-Received: by 2002:a05:6214:508d:b0:67f:7faf:87d5 with SMTP id kk13-20020a056214508d00b0067f7faf87d5mr30109975qvb.117.1704246726537; Tue, 02 Jan 2024 17:52:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704246726; cv=none; d=google.com; s=arc-20160816; b=Otn4OiF6aM4+vU6LLu+A8NFoXVt/rbIx6bAKRTqdsyIpKBRhU39ibbZD8GsWkhQhDC XUX20Ksu9ZhgPSLcoV3ohtELc4y7XKN9kjsSbTClAj7MkL0TN8GIUpuqGmBMU0Qi6LB6 eXkH42EWzeVEGVqCklE5ApilH7vIcNRo6KuDfnA2pwPPLTdRuvr58rn8uNEz18iFJ8R1 8oBzFtmBNaF6DaFSKrfnS0gyaAxdDliuMbaLoeu8gOHgDzpfrH7iABiJH8AvqefU27GV wtkEnK1E0FUF/g1KfMf5ZgeQG1ml7XEcfdzG82SAZFyPrm4wyTrmXdYoEiQ0YScqCE/2 Hs6g== ARC-Message-Signature: i=1; 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=euWKkvgy6RfQMJP27dfrBNBs+wAxTH/0rNdV2lbo1Zk=; fh=hu/11vjhAVGN2soHkDrejjtKeeIeHno3fFH7CvZIC0Y=; b=g/xniGvQgEMzBdIkIvCJPMaWecBo9qYplTN7eF3SvcSTiQg1MCSOK1Qv0D8w2YOH1Z odB7ulzait0mqAC5fnQlwCU7Kc8p0yO68H2zYaK8i4pwUX5N1DZD8C9prt+z5bNLev8R QwCAFQdjUjbK4SfrKNhWjRYHuzaUip6ad9beYmbLoJOg41eMTyZymn4DNfoKxRWBa2ve JokBOyuLkEfjYeD4WnRoIhVVNNm6qea52HP7uDhYFQzhrrJEMHLUMkMTIegqx5tHklZJ ngbeD2Oi1zD94pbXdwC7jCSv+qUMjt8rAFmPml3FotmbA10jFkKI4TN0Iejo6PufauTL 1BsA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-15050-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15050-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id gv10-20020a056214262a00b006803a797f51si18423945qvb.612.2024.01.02.17.52.06 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 17:52:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15050-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-15050-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15050-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5828A1C21C9B for <ouuuleilei@gmail.com>; Wed, 3 Jan 2024 01:52:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E8F414A80; Wed, 3 Jan 2024 01:51:28 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org 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 C17231116; Wed, 3 Jan 2024 01:51:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66BEEC433CA; Wed, 3 Jan 2024 01:51:26 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.97) (envelope-from <rostedt@goodmis.org>) id 1rKqQm-00000000k6G-2cE0; Tue, 02 Jan 2024 20:52:28 -0500 Message-ID: <20240103015228.487061905@goodmis.org> User-Agent: quilt/0.67 Date: Tue, 02 Jan 2024 20:50:45 -0500 From: Steven Rostedt <rostedt@goodmis.org> To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu <mhiramat@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Mathieu Desnoyers <mathieu.desnoyers@efficios.com>, Andrew Morton <akpm@linux-foundation.org>, stable@vger.kernel.org Subject: [for-linus][PATCH 2/2] eventfs: Fix bitwise fields for "is_events" References: <20240103015043.912131206@goodmis.org> 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: 1787032215127174853 X-GMAIL-MSGID: 1787032215127174853 |
Series |
tracing: Two more small fixes for v6.7-rc8
|
|
Commit Message
Steven Rostedt
Jan. 3, 2024, 1:50 a.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> --- 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)