proc_fd_getattr(): don't bother with S_ISDIR() check
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 15 Jun 2025 00:33:21 +0000 (01:33 +0100)
committerChristian Brauner <brauner@kernel.org>
Mon, 16 Jun 2025 14:21:07 +0000 (16:21 +0200)
commitb5ba648a7dd2b42725ae2d07335f0551111437a2
tree5a8b0a54f7d642f6d5e75c2a2accd58522c49195
parent88b1de54979c7ac8b1faec646c600ce66f0da24e
proc_fd_getattr(): don't bother with S_ISDIR() check

that thing is callable only as ->i_op->getattr() instance and only
for directory inodes (/proc/*/fd and /proc/*/task/*/fd)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Link: https://lore.kernel.org/20250615003321.GC3011112@ZenIV
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/proc/fd.c