commit | 55f0d8205dc6399826332c21bc56626868cd453d | [log] [tgz] |
---|---|---|
author | Ian Kent <[email protected]> | Thu Jan 03 15:27:33 2019 -0800 |
committer | Linus Torvalds <[email protected]> | Fri Jan 04 13:13:46 2019 -0800 |
tree | 9a15cf912445e21d9ad3fb87f087a89185313191 | |
parent | 7c8f71935a65a584c48cbe478aaffc52292d6e00 [diff] |
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. [[email protected]: 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 <[email protected]> Cc: Al Viro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>