Thread (99 messages) 99 messages, 25 authors, 46m ago

Re: [PATCH 2/3] vmsplice: make vmsplice a trivial wrapper for preadv2/pwritev2

From: David Laight <hidden>
Date: 2026-06-04 09:06:13
Also in: linux-fsdevel, linux-mm, linux-patches, lkml, netdev

On Thu,  4 Jun 2026 00:17:36 +0300
Askar Safin [off-list ref] wrote:
Stefan Metzmacher [off-list ref]:
quoted
Why is 'int fd' changed to 'unsigned long fd'?  
Because preadv2 and pwritev2 take "unsigned long". I want vmsplice
to be as similar as possible to preadv2 and pwritev2.
Something needs to ensure that the high 32bits of the fd get masked off
on 64bit systems.
They can be non-zero in the register that comes from userspace.

-- David
quoted
Should that be its own commit if the change is desired?  
Yes, possibly. But this patchset already got to next.
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help