linux/fs/autofs
Ian Kent 55f0d8205d autofs: improve ioctl sbi checks
Al Viro made some suggestions to improve the implementation of commit
0633da48f0 ("fix autofs_sbi() does not check super block type").

The check is unnecessary in all cases except for ioctl usage so placing
the check in the super block accessor function adds a small overhead to
the common case where it isn't needed.

So it's sufficient to do this in the ioctl code only.

Also the check in the ioctl code is needlessly complex.

[akpm@linux-foundation.org: declare autofs_fs_type in .h, not .c]
Link: http://lkml.kernel.org/r/154296970987.9889.1597442413573683096.stgit@pluto-themaw-net
Signed-off-by: Ian Kent <raven@themaw.net>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-01-04 13:13:46 -08:00
..
autofs_i.h autofs: improve ioctl sbi checks 2019-01-04 13:13:46 -08:00
dev-ioctl.c autofs: improve ioctl sbi checks 2019-01-04 13:13:46 -08:00
expire.c autofs: add AUTOFS_EXP_FORCED flag 2018-08-22 10:52:49 -07:00
init.c autofs: improve ioctl sbi checks 2019-01-04 13:13:46 -08:00
inode.c autofs: fix autofs_sbi() does not check super block type 2018-08-22 10:52:43 -07:00
Kconfig autofs: Fix typo s/thenew new/the new/ in AUTOFS4_FS description 2018-06-12 12:31:19 -07:00
Makefile autofs: rename 'autofs' module back to 'autofs4' 2018-07-05 11:35:04 -07:00
root.c autofs: fix directory and symlink access 2018-08-22 10:52:49 -07:00
symlink.c autofs: copy autofs4 to autofs 2018-06-07 17:34:39 -07:00
waitq.c autofs: small cleanup in autofs_getpath() 2018-06-07 17:34:40 -07:00