diff options
author | Ian Kent <raven@themaw.net> | 2019-01-04 02:27:33 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-01-05 00:13:46 +0300 |
commit | 55f0d8205dc6399826332c21bc56626868cd453d (patch) | |
tree | 9a15cf912445e21d9ad3fb87f087a89185313191 /include | |
parent | 7c8f71935a65a584c48cbe478aaffc52292d6e00 (diff) | |
download | linux-55f0d8205dc6399826332c21bc56626868cd453d.tar.xz |
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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions