]> git.baikalelectronics.ru Git - kernel.git/commit
sysctl: Convert to iter interfaces
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 3 Sep 2020 14:22:32 +0000 (16:22 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 9 Sep 2020 02:20:39 +0000 (22:20 -0400)
commite702d50ea738c2b98658487a38224f4cfa8574e8
treefc5477c5f8ff20e2b5e5d66ecc8c319ff44b4fd0
parent07803033552144b7bb5e3a175cf75d63ab735747
sysctl: Convert to iter interfaces

Using the read_iter/write_iter interfaces allows for in-kernel users
to set sysctls without using set_fs().  Also, the buffer is a string,
so give it the real type of 'char *', not void *.

[AV: Christoph's fixup folded in]

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/proc/proc_sysctl.c
include/linux/bpf-cgroup.h
kernel/bpf/cgroup.c