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)
Wed, May 20, 3:35 AM
Unknown Object (File)
Mon, May 18, 1:15 PM
Unknown Object (File)
Mon, May 18, 1:15 PM
Unknown Object (File)
Sun, May 17, 4:54 PM
Unknown Object (File)
Sun, May 17, 10:27 AM
Unknown Object (File)
Fri, May 1, 12:15 PM
Unknown Object (File)
Apr 19 2026, 5:11 AM
Unknown Object (File)
Apr 19 2026, 5:05 AM
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).