Commit 79025e7
random: wire up fops->splice_{read,write}_iter()
Now that random/urandom is using {read,write}_iter, we can wire it up to
using the generic splice handlers.
Fixes: 36e2c74 ("fs: don't allow splice read/write without explicit ops")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
[Jason: added the splice_write path. Note that sendfile() and such still
does not work for read, though it does for write, because of a file
type restriction in splice_direct_to_actor(), which I'll address
separately.]
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>1 parent 22b0a22 commit 79025e7
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1412 | 1412 | | |
1413 | 1413 | | |
1414 | 1414 | | |
| 1415 | + | |
| 1416 | + | |
1415 | 1417 | | |
1416 | 1418 | | |
1417 | 1419 | | |
| |||
1421 | 1423 | | |
1422 | 1424 | | |
1423 | 1425 | | |
| 1426 | + | |
| 1427 | + | |
1424 | 1428 | | |
1425 | 1429 | | |
1426 | 1430 | | |
| |||
0 commit comments