From patchwork Tue Jan 2 20:18:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 184442 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp4663829dyb; Tue, 2 Jan 2024 12:17:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGFaISWj+wDc1YNEKcRFrP9bI7QRLSuNOH1GUi7HcVOyya6U5CEjtMVIiE5FivCjUSIRbBZ X-Received: by 2002:a17:90b:383:b0:28b:e295:fc41 with SMTP id ga3-20020a17090b038300b0028be295fc41mr9293438pjb.95.1704226675564; Tue, 02 Jan 2024 12:17:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704226675; cv=none; d=google.com; s=arc-20160816; b=Qyo7M1WTR9dh38yJLPJ/7MjcaRi4QL2X2huqZwF0bpeo9BW3FGHngObzBUVmzOnIQZ +m/8Rga5x7Ui6iF0lpctHejYznhIsoHg+CEfWm3UzZrbB1+mO12kpG0Wy4cE+3CuelA1 PL11wUVR08JYWELh7yDJK8F2np7Vw7n9+rNv8tJO2DuLdvugaBTFrqU2yReFyURboDLM 9mdCBt7+Yv7dLlaoVIzQrYIm4tMug1CIpl7fLTcURAw4Vls/mgRbYE7cMZMznCDzvjXU Zq9gAeemjoU2t9IvTw+R9ZMXeN+wik0G40n7cNjEC2Y2LC5wuWPlEPejzpUDoQSDJuz6 h/oA== ARC-Message-Signature: i=1; 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:message-id:subject:cc:to:from :date; bh=w8WQqxFt2XHbUlHSL5mRA8y8YyTUlLS+JKTOpWEBRXI=; fh=a/W6vY+bgZ8N83j3/Fv0S1qn1lyMv2u/UPVp2x/5R8s=; b=PkY/whHxANZa4v4QCI8HasrNIonPMAZEoxBht0d2QpsjaJsl8fau7rxJBd6RESZu+W Ay1e60G8bMeWiVi2fE3xSxZ6k3FGO0VG1s02gOOvxHlAn7hrd9ZRqUeZqREsbKBFS44y 1hLEFhCJzZ336T2ggtI0EU4ZGZ0Iip11cWb+QEz0zgo6cMVbzpB3O//lLsFg//5rCOnd uXldJVWwnZ5251p7hKbdWhkZK8PawmdjfcIL/YN+Ay5AW50D7gnqo+ue6ztwGIYGfktA yHQcCgdGtkVqnTalghQgEzaqIHnpba+4OuRBxRTzcyw3972XvlvZilJTGUEq5kgYSzKJ DfZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-14797-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14797-ouuuleilei=gmail.com@vger.kernel.org" Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id co13-20020a17090afe8d00b0028ce0a2347asi7960pjb.173.2024.01.02.12.17.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 12:17:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14797-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-14797-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14797-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6321EB22830 for ; Tue, 2 Jan 2024 20:17:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E23F016423; Tue, 2 Jan 2024 20:17:33 +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 78D5A16401; Tue, 2 Jan 2024 20:17:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97671C433C8; Tue, 2 Jan 2024 20:17:31 +0000 (UTC) Date: Tue, 2 Jan 2024 15:18:32 -0500 From: Steven Rostedt To: LKML , Linux Trace Kernel Cc: Masami Hiramatsu , Mathieu Desnoyers Subject: [PATCH] eventfs: Fix bitwise fields for "is_events" Message-ID: <20240102151832.7ca87275@gandalf.local.home> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787011190211557785 X-GMAIL-MSGID: 1787011190211557785 From: "Steven Rostedt (Google)" 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. Cc: stable@vger.kernel.org Fixes: 7e8358edf503e ("eventfs: Fix file and directory uid and gid ownership") Signed-off-by: Steven Rostedt (Google) --- 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)