• Steven Rostedt (Google)'s avatar
    eventfs: Remove getattr and permission callbacks · 37cd0d12
    Steven Rostedt (Google) authored
    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: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
    37cd0d12
event_inode.c 24.2 KB