Skip to content

Commit fd56cd5

Browse files
committed
eventfs: Fix bitwise fields for "is_events"
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: 7e8358e ("eventfs: Fix file and directory uid and gid ownership") Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 parent ad57986 commit fd56cd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/tracefs/internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ struct eventfs_inode {
6363
};
6464
unsigned int is_freed:1;
6565
unsigned int is_events:1;
66-
unsigned int nr_entries:31;
66+
unsigned int nr_entries:30;
6767
};
6868

6969
static inline struct tracefs_inode *get_tracefs(const struct inode *inode)

0 commit comments

Comments
 (0)