Tomohiro Kusumi fe0c9f409a Remove vn_set_fs_pwd()/vn_set_pwd() (no need to be at / during insmod)
Per suggestion from @behlendorf in #8777, remove vn_set_fs_pwd() and
vn_set_pwd() which are only used in zfs_ioctl.c:_init() while loading
zfs.ko.

The rest of initialization functions being called here after cwd set
to / don't depend on cwd of the process except for spa_config_load().
spa_config_load() uses a relative path ".//etc/zfs/zpool.cache" when
`rootdir` is non-NULL, which is "/etc/zfs/zpool.cache" given cwd is /,
so just unconditionally use the absolute path without "./", so that
`vn_set_pwd("/")` as well as the entire functions can be removed.
This is also what FreeBSD does.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@osnexus.com>
Closes #8826
2019-05-29 16:18:14 -07:00
..
2018-05-01 10:33:35 -07:00
2019-01-06 10:39:41 -08:00
2019-03-29 09:13:20 -07:00
2011-04-19 10:10:47 -07:00
2019-03-06 16:03:03 -08:00
2017-01-03 11:31:18 -06:00
2018-05-29 16:00:33 -07:00
2012-10-14 13:06:48 -07:00
2019-05-23 14:40:28 -07:00
2016-11-04 10:46:40 -07:00
2018-08-27 10:04:21 -07:00
2017-01-03 11:31:18 -06:00
2019-03-02 16:19:05 -08:00
2018-05-29 14:51:39 -07:00
2019-04-14 11:04:54 -07:00
2018-05-29 14:51:39 -07:00
2018-03-28 10:19:22 -07:00
2016-03-18 13:31:11 -07:00
2018-11-11 18:06:36 -08:00
2016-03-18 13:31:11 -07:00
2018-05-29 16:00:33 -07:00