Page MenuHomeFreeBSD

ffs: fix vn_io_fault_pgmove() offset for PAGE_SIZE > block size
ClosedPublic

Authored by chs on Apr 7 2022, 8:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 21, 6:07 AM
Unknown Object (File)
Sat, Apr 20, 4:39 PM
Unknown Object (File)
Wed, Apr 10, 9:09 PM
Unknown Object (File)
Fri, Apr 5, 7:48 AM
Unknown Object (File)
Feb 8 2024, 4:16 AM
Unknown Object (File)
Jan 22 2024, 11:42 AM
Unknown Object (File)
Jan 14 2024, 9:51 AM
Unknown Object (File)
Dec 20 2023, 8:24 AM
Subscribers
None

Details

Summary

The "offset" argument to vn_io_fault_pgmove() is supposed to be
the offset within the page, but for ffs we currently use the offset
within the block. When the block size is at least as large as the
page size then these values are the same, but when the page size is
larger than the block size then we need to add the offset of
the block within the page as well.

Sponsored by: Netflix

Diff Detail

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