linux-2.6-block.git
10 months agolib: convert to read/write iterators
Jens Axboe [Thu, 4 Apr 2024 02:49:06 +0000 (20:49 -0600)]
lib: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agos390/dasd: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 21:09:53 +0000 (15:09 -0600)]
s390/dasd: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agozram: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 14:12:45 +0000 (08:12 -0600)]
zram: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agomtip32xx: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 14:12:33 +0000 (08:12 -0600)]
mtip32xx: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agodrbd: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 14:12:22 +0000 (08:12 -0600)]
drbd: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoaoe: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 14:12:08 +0000 (08:12 -0600)]
aoe: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agomm: convert to read/write iterators
Jens Axboe [Thu, 4 Apr 2024 02:04:48 +0000 (20:04 -0600)]
mm: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agosecurity: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 13:57:37 +0000 (07:57 -0600)]
security: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agolockdown: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 13:57:20 +0000 (07:57 -0600)]
lockdown: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agointegrity: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 13:56:51 +0000 (07:56 -0600)]
integrity: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoselinux: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 13:56:20 +0000 (07:56 -0600)]
selinux: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agolsm: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 13:56:08 +0000 (07:56 -0600)]
lsm: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agolandlock: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 13:55:31 +0000 (07:55 -0600)]
landlock: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoapparmor: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 13:55:16 +0000 (07:55 -0600)]
apparmor: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agosmack: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 13:52:24 +0000 (07:52 -0600)]
smack: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agotomoyo: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 13:49:20 +0000 (07:49 -0600)]
tomoyo: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agofs: add iterator based version of simple_transaction_read()
Jens Axboe [Thu, 4 Apr 2024 17:12:56 +0000 (11:12 -0600)]
fs: add iterator based version of simple_transaction_read()

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agokprobes: convert to read/write iterators
Jens Axboe [Mon, 8 Apr 2024 22:18:17 +0000 (16:18 -0600)]
kprobes: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agolocking/lock_events: convert to read/write iterators
Jens Axboe [Mon, 8 Apr 2024 22:15:09 +0000 (16:15 -0600)]
locking/lock_events: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agokernel/irq: convert debugfs helpers to read/write iterators
Jens Axboe [Mon, 8 Apr 2024 22:14:43 +0000 (16:14 -0600)]
kernel/irq: convert debugfs helpers to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agosched/debug: convert to read/write iterators
Jens Axboe [Mon, 8 Apr 2024 22:14:19 +0000 (16:14 -0600)]
sched/debug: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agogcov: convert to read/write iterators
Jens Axboe [Mon, 8 Apr 2024 22:13:51 +0000 (16:13 -0600)]
gcov: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agotracing: convert to read/write iterators
Jens Axboe [Mon, 8 Apr 2024 22:13:33 +0000 (16:13 -0600)]
tracing: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agorv: convert to read/write iterators
Jens Axboe [Mon, 8 Apr 2024 22:13:06 +0000 (16:13 -0600)]
rv: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agokernel/time: convert to read/write iterators
Jens Axboe [Mon, 8 Apr 2024 22:12:24 +0000 (16:12 -0600)]
kernel/time: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agorelay: convert to read/write iterators
Jens Axboe [Mon, 8 Apr 2024 22:12:04 +0000 (16:12 -0600)]
relay: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoprintk: convert to read/write iterators
Jens Axboe [Mon, 8 Apr 2024 22:11:53 +0000 (16:11 -0600)]
printk: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agokernel/power: convert to read/write iterators
Jens Axboe [Mon, 8 Apr 2024 22:11:23 +0000 (16:11 -0600)]
kernel/power: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agomodule: convert to read/write iterators
Jens Axboe [Mon, 8 Apr 2024 22:10:56 +0000 (16:10 -0600)]
module: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agokcsan: convert to read/write iterators
Jens Axboe [Mon, 8 Apr 2024 22:10:43 +0000 (16:10 -0600)]
kcsan: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agokernel/fail_function: convert to read/write iterators
Jens Axboe [Mon, 8 Apr 2024 22:10:32 +0000 (16:10 -0600)]
kernel/fail_function: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agodma-debug: convert to read/write iterators
Jens Axboe [Mon, 8 Apr 2024 22:10:14 +0000 (16:10 -0600)]
dma-debug: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoperf: convert events to read/write iterators
Jens Axboe [Mon, 8 Apr 2024 22:09:52 +0000 (16:09 -0600)]
perf: convert events to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agobpf: convert to read/write iterators
Jens Axboe [Mon, 8 Apr 2024 22:09:04 +0000 (16:09 -0600)]
bpf: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoblock: convert to read/write iterators
Jens Axboe [Wed, 3 Apr 2024 22:57:50 +0000 (16:57 -0600)]
block: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoASoC: SOF: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 14:05:19 +0000 (08:05 -0600)]
ASoC: SOF: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoASoC: SOF: Core: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 14:05:03 +0000 (08:05 -0600)]
ASoC: SOF: Core: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoSoC: SOF: icp4: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 14:03:58 +0000 (08:03 -0600)]
SoC: SOF: icp4: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoASoC: SOF: icp3-dtrace: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 14:03:43 +0000 (08:03 -0600)]
ASoC: SOF: icp3-dtrace: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agosound/oss/dmasound: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 14:03:19 +0000 (08:03 -0600)]
sound/oss/dmasound: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoALSA: pcmtest: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 14:03:00 +0000 (08:03 -0600)]
ALSA: pcmtest: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoASoC: fsl: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 14:02:36 +0000 (08:02 -0600)]
ASoC: fsl: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoASoC: Intel: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 14:02:10 +0000 (08:02 -0600)]
ASoC: Intel: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoALSA: core: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 14:01:16 +0000 (08:01 -0600)]
ALSA: core: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agofs: add IOCB_VECTORED flags
Jens Axboe [Sat, 6 Apr 2024 19:34:25 +0000 (13:34 -0600)]
fs: add IOCB_VECTORED flags

This allows a user of ->read_iter() or ->write_iter() to tell if this
request originally came as a readv/writev, or if it was a normal
read/write operation.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agonet: l2tp: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 17:46:15 +0000 (11:46 -0600)]
net: l2tp: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agonet: rfkill: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 17:46:00 +0000 (11:46 -0600)]
net: rfkill: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agonet: wireless: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 17:45:49 +0000 (11:45 -0600)]
net: wireless: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agonet: sunrpc: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 17:42:32 +0000 (11:42 -0600)]
net: sunrpc: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agonet: 6lowpan: convert debugfs to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 17:41:35 +0000 (11:41 -0600)]
net: 6lowpan: convert debugfs to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agonet: mac80211: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 17:41:21 +0000 (11:41 -0600)]
net: mac80211: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoBluetooth: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 17:32:18 +0000 (11:32 -0600)]
Bluetooth: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agostaging: convert drivers to read/write iterators
Jens Axboe [Wed, 3 Apr 2024 18:10:24 +0000 (12:10 -0600)]
staging: convert drivers to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agofs/fuse: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 13:39:13 +0000 (07:39 -0600)]
fs/fuse: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoubifs: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 13:39:01 +0000 (07:39 -0600)]
ubifs: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agotracefs: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 13:38:51 +0000 (07:38 -0600)]
tracefs: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agodlm: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 13:38:40 +0000 (07:38 -0600)]
dlm: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoorangefs: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 13:38:24 +0000 (07:38 -0600)]
orangefs: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoocfs2: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 13:38:10 +0000 (07:38 -0600)]
ocfs2: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoecryptfs: miscdev: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 13:37:32 +0000 (07:37 -0600)]
ecryptfs: miscdev: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoceph: convert read_dir handler to read_iter()
Jens Axboe [Wed, 3 Apr 2024 17:44:16 +0000 (11:44 -0600)]
ceph: convert read_dir handler to read_iter()

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agofs: convert any user of fops->read() for seq_read to read_iter
Jens Axboe [Wed, 3 Apr 2024 17:37:13 +0000 (11:37 -0600)]
fs: convert any user of fops->read() for seq_read to read_iter

There's a seq_read_iter that can be used, do that.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agofs: convert generic_read_dir() to ->read_iter()
Jens Axboe [Wed, 3 Apr 2024 17:32:14 +0000 (11:32 -0600)]
fs: convert generic_read_dir() to ->read_iter()

No functional changes here, just a straight forward mechanical
conversion.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agolibfs: switch to read iter and add copy helpers
Jens Axboe [Wed, 3 Apr 2024 22:43:35 +0000 (16:43 -0600)]
libfs: switch to read iter and add copy helpers

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agodebugfs: convert to ->read_iter()
Jens Axboe [Wed, 3 Apr 2024 17:13:04 +0000 (11:13 -0600)]
debugfs: convert to ->read_iter()

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/xillybus: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:48:26 +0000 (10:48 -0600)]
char/xillybus: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/xilinx_hwicap: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:48:11 +0000 (10:48 -0600)]
char/xilinx_hwicap: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/tlclk: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:48:02 +0000 (10:48 -0600)]
char/tlclk: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/sonypi: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:47:52 +0000 (10:47 -0600)]
char/sonypi: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/scx200_gpio: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:47:39 +0000 (10:47 -0600)]
char/scx200_gpio: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/ps3flash: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:43:22 +0000 (10:43 -0600)]
char/ps3flash: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/ppdev: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:43:11 +0000 (10:43 -0600)]
char/ppdev: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/powernv-op-panel: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:42:59 +0000 (10:42 -0600)]
char/powernv-op-panel: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/pc8736x_gpio: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:42:46 +0000 (10:42 -0600)]
char/pc8736x_gpio: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/nwflash: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:42:35 +0000 (10:42 -0600)]
char/nwflash: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/nwbutton: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:42:23 +0000 (10:42 -0600)]
char/nwbutton: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/nvram: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:42:11 +0000 (10:42 -0600)]
char/nvram: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/mwave: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:42:02 +0000 (10:42 -0600)]
char/mwave: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/mem: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:41:50 +0000 (10:41 -0600)]
char/mem: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/lp: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:41:40 +0000 (10:41 -0600)]
char/lp: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/tpm: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:41:27 +0000 (10:41 -0600)]
char/tpm: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/ipmi: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:41:08 +0000 (10:41 -0600)]
char/ipmi: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/hw_random: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:40:55 +0000 (10:40 -0600)]
char/hw_random: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/hpet: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:40:43 +0000 (10:40 -0600)]
char/hpet: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/dtlk: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:40:33 +0000 (10:40 -0600)]
char/dtlk: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/dsp56k: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:40:21 +0000 (10:40 -0600)]
char/dsp56k: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/dsp1620: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:40:08 +0000 (10:40 -0600)]
char/dsp1620: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/nsc_gpio: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:39:49 +0000 (10:39 -0600)]
char/nsc_gpio: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/applicom: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:39:24 +0000 (10:39 -0600)]
char/applicom: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/apm-emulation: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:39:09 +0000 (10:39 -0600)]
char/apm-emulation: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/adi: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:38:48 +0000 (10:38 -0600)]
char/adi: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agovirtio_console: convert to read/write iterator helpers
Jens Axboe [Wed, 3 Apr 2024 15:56:29 +0000 (09:56 -0600)]
virtio_console: convert to read/write iterator helpers

Add stub read/write iterators which just use the VFS helpers, and
kill the ->read() and ->write() usage.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoseq_file: switch to using ->read_iter()
Jens Axboe [Wed, 3 Apr 2024 16:49:53 +0000 (10:49 -0600)]
seq_file: switch to using ->read_iter()

There's a seq_read_iter() helper already, use it.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agolib/string_helpers: add parse_int_array_iter()
Jens Axboe [Tue, 9 Apr 2024 16:20:08 +0000 (10:20 -0600)]
lib/string_helpers: add parse_int_array_iter()

Works just like parse_int_array_user(), except it takes and iov_iter
instead of a ubuf + length.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agolib/string_helpers: split __parse_int_array() into a helper
Jens Axboe [Tue, 9 Apr 2024 16:17:03 +0000 (10:17 -0600)]
lib/string_helpers: split __parse_int_array() into a helper

No functional changes, just in preparation for providing an iter based
version.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agokstrtox: add iov_iter versions of the string conversion helpers
Jens Axboe [Mon, 8 Apr 2024 14:46:58 +0000 (08:46 -0600)]
kstrtox: add iov_iter versions of the string conversion helpers

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agomm/util: add iterdup_nul() and iterdup() helpers
Jens Axboe [Mon, 8 Apr 2024 13:54:40 +0000 (07:54 -0600)]
mm/util: add iterdup_nul() and iterdup() helpers

This is identical to the memdup variants, except it operates on a struct
iov_iter rather than a direct user pointer.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agofs: add uio.h to fs.h
Jens Axboe [Sun, 7 Apr 2024 03:06:10 +0000 (21:06 -0600)]
fs: add uio.h to fs.h

Most conversions will end up pulling in fs.h already, but not uio.h.
As the fs iterators will need that, just include it from fs.h rather
than need to add it everywhere. It's pretty natural to need user copy
helpers for read/write operators anyway.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agouio: add get/put_iter helpers
Jens Axboe [Tue, 9 Apr 2024 17:02:00 +0000 (11:02 -0600)]
uio: add get/put_iter helpers

For users that currently do put_user(val, uaddr) or get_user(val, uaddr),
add iterator versions that do the same thing.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agofs: add simple_copy_{to,from}_iter() helpers
Jens Axboe [Thu, 4 Apr 2024 14:21:24 +0000 (08:21 -0600)]
fs: add simple_copy_{to,from}_iter() helpers

While doing so, rename the networking helper that has the same name.

Signed-off-by: Jens Axboe <axboe@kernel.dk>