]> git.baikalelectronics.ru Git - kernel.git/commit
devtmpfs: use do_mount() instead of ksys_mount()
authorDominik Brodowski <linux@dominikbrodowski.net>
Tue, 23 Oct 2018 20:10:35 +0000 (22:10 +0200)
committerDominik Brodowski <linux@dominikbrodowski.net>
Thu, 12 Dec 2019 13:49:57 +0000 (14:49 +0100)
commitb94e3f34b49a6ec311675c0b72fdf4170995f2ae
tree2041ebfdeab6acf7e5bc4069f8d1905914ea4d86
parent4d1aaae2cd535622389f5a81b8707cd76e77b2b4
devtmpfs: use do_mount() instead of ksys_mount()

In devtmpfs, do_mount() can be called directly instead of complex wrapping
by ksys_mount():
- the first and third arguments are const strings in the kernel,
  and do not need to be copied over from userspace;
- the fifth argument is NULL, and therefore no page needs to be
  copied over from userspace;
- the second and fourth argument are passed through anyway.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/base/devtmpfs.c
include/linux/device.h
init/do_mounts.c