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
F153107292: D51838.id160136.diff
Sun, Apr 19, 5:11 AM
F153106854: D51838.id160136.diff
Sun, Apr 19, 5:05 AM
Unknown Object (File)
Sat, Apr 18, 9:05 AM
Unknown Object (File)
Sat, Apr 18, 8:39 AM
Unknown Object (File)
Fri, Apr 17, 5:51 PM
Unknown Object (File)
Thu, Apr 16, 1:01 PM
Unknown Object (File)
Mon, Apr 13, 9:00 PM
Unknown Object (File)
Mon, Apr 6, 9:55 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).