Move splice_to_socket to net/socket.c
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | pipe: Move pipe wakeup helpers out of splicefs/ fs/ include/ | +29 | 1 reply | |
| 2/3 | splice: Move splice_to_socket to net/socket.cfs/ include/ net/ | +140 | 3 replies | |
| 3/3 | net: splice_to_socket: RCT declaration cleanupnet/ | +2 | 0 replies |
Reviews trailers per patch
2 of 3 patches have a Reviewed-by or Acked-by.
| Patch | Jakub Kicinski | Jens Axboe |
|---|---|---|
| 1/3 | R-b | |
| 2/3 | A-b | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH vfs/for-next 0/3] Move splice_to_socket to net/socket.c
Greetings:
While reading through the splice and socket code I noticed that some splice helpers (like sock_splice_read and sock_splice_eof) live in net/socket.c, but splice_to_socket does not.
I am not sure if there is a reason for this, but it seems like moving this code provides some advantages:
- Eliminates the #ifdef CONFIG_NET from fs/splice.c
- Keeps the socket related splice helpers together in net/socket.c where it seems (IMHO) more logical for them to live
This change is essentially cleanup; no functional changes to splice are introduced.
I based this change on vfs/for-next since 2 of the 3 patches are vfs, but I am happy to rebase this on another tree if necessary.
Thanks,
Joe
Joe Damato (3):
pipe: Move pipe wakeup helpers out of splice
splice: Move splice_to_socket to net/socket.c
net: splice_to_socket: RCT declaration cleanup
fs/pipe.c | 16 ++++ fs/splice.c | 170 ++------------------------------------ include/linux/pipe_fs_i.h | 4 + include/linux/splice.h | 3 - net/socket.c | 140 +++++++++++++++++++++++++++++++ 5 files changed, 167 insertions(+), 166 deletions(-)
base-commit: 2e72b1e0aac24a12f3bf3eec620efaca7ab7d4de
Signature · 1 line
2.43.0