autofs: fix per-dentry timeout warning
authorIan Kent <raven@themaw.net>
Tue, 11 Nov 2025 06:04:38 +0000 (14:04 +0800)
committerChristian Brauner <brauner@kernel.org>
Thu, 4 Dec 2025 08:57:51 +0000 (09:57 +0100)
commitb6cb3ccef6e1e275f238d7ecc5986fd6b993e870
tree52ec47eee30409a9511000a009508d19394b623d
parentaa8aba61d4e17e23ae048098b81f65840a7d5722
autofs: fix per-dentry timeout warning

The check that determines if the message that warns about the per-dentry
timeout being greater than the super block timeout is not correct.

The initial value for this field is -1 and the type of the field is
unsigned long.

I could change the type to long but the message is in the wrong place
too, it should come after the timeout setting. So leave everything else
as it is and move the message and check the timeout is actually set
as an additional condition on issuing the message. Also fix the timeout
comparison.

Signed-off-by: Ian Kent <raven@themaw.net>
Link: https://patch.msgid.link/20251111060439.19593-2-raven@themaw.net
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/autofs/dev-ioctl.c