eventfs: Remove getattr and permission callbacks
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 22 May 2024 16:49:44 +0000 (12:49 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 23 May 2024 13:27:25 +0000 (09:27 -0400)
commit37cd0d1266971942f5cda3e4ca1c6fb005635b14
treec62ddac2c50fdcc26104a7314b27b125e6dad08b
parent625acf9d5e56e10b92636003df7f5bddb21a7a34
eventfs: Remove getattr and permission callbacks

Now that inodes have their permissions updated on remount, the only other
places to update the inode permissions are when they are created and in
the setattr callback. The getattr and permission callbacks are not needed
as the inodes should already be set at their proper settings.

Remove the callbacks, as it not only simplifies the code, but also allows
more flexibility to fix the inconsistencies with various corner cases
(like changing the permission of an instance directory).

Link: https://lore.kernel.org/lkml/20240522165031.782066021@goodmis.org
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
fs/tracefs/event_inode.c