Page MenuHomeFreeBSD

vfs: Put the definition of COPY_FILE_RANGE_CLONE in an appropriate place
ClosedPublic

Authored by rmacklem on Aug 9 2025, 1:11 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 6, 9:55 PM
Unknown Object (File)
Mon, Mar 30, 2:50 AM
Unknown Object (File)
Sun, Mar 29, 7:44 PM
Unknown Object (File)
Sun, Mar 29, 5:25 AM
Unknown Object (File)
Tue, Mar 17, 11:08 AM
Unknown Object (File)
Sun, Mar 15, 4:30 AM
Unknown Object (File)
Sun, Mar 15, 4:23 AM
Unknown Object (File)
Tue, Mar 10, 12:57 PM
Subscribers

Details

Summary

kib@ noted that having COPY_FILE_RANGE_CLONE defined
in vnode.h was inappropriate, since it is meant to be used from
user space as well as kernel space.

This patch moves it into sys/unistd.h and reverts the addition
of it in vnode.h.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib added inline comments.
sys/sys/unistd.h
223

Why it matter which bits Linux uses?

This revision is now accepted and ready to land.Aug 9 2025, 2:25 AM
sys/sys/unistd.h
223

It doesn't matter a lot. I thought it might avoid
confusion and simplify the Linuxolator implementation
(it wouldn't have to map flags).