linux/fs/autofs4
Ian Kent d9e1923207 autofs: add autofs_dev_ioctl_version() for AUTOFS_DEV_IOCTL_VERSION_CMD
No functional changes, based on the following justification.

1. Make the code more consistent using the ioctl vector _ioctls[],
   rather than assigning NULL only for this ioctl command.
2. Remove goto done; for better maintainability in the long run.
3. The existing code is based on the fact that validate_dev_ioctl()
   sets ioctl version for any command, but AUTOFS_DEV_IOCTL_VERSION_CMD
   should explicitly set it regardless of the default behavior.

Link: http://lkml.kernel.org/r/20160812024846.12352.9885.stgit@pluto.themaw.net
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Signed-off-by: Ian Kent <ikent@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-10-11 15:06:31 -07:00
..
autofs_i.h autofs: fix dev ioctl number range check 2016-10-11 15:06:31 -07:00
dev-ioctl.c autofs: add autofs_dev_ioctl_version() for AUTOFS_DEV_IOCTL_VERSION_CMD 2016-10-11 15:06:31 -07:00
expire.c autofs: use dentry flags to block walks during expire 2016-09-19 15:36:17 -07:00
init.c autofs4: coding style fixes 2016-03-15 16:55:16 -07:00
inode.c autofs: use autofs4_free_ino() to kfree dentry data 2016-10-11 15:06:31 -07:00
Kconfig fs/Kconfig: move autofs, autofs4 out 2009-01-22 13:15:54 +03:00
Makefile autofs4: add miscellaneous device for ioctls 2008-10-16 11:21:39 -07:00
root.c autofs: fix pr_debug() message 2016-10-11 15:06:31 -07:00
symlink.c autofs4: coding style fixes 2016-03-15 16:55:16 -07:00
waitq.c autofs: Fix automounts by using current_real_cred()->uid 2016-09-30 12:48:01 -05:00